From 41b637c338e999cfb920ef92a976c01474f2a25c Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 15 Jul 2010 05:40:05 +0200 Subject: [PATCH] hsv: Remove unused variable --- gtk/gtkhsv.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/gtk/gtkhsv.c b/gtk/gtkhsv.c index a8a22cba4d..16733c52c9 100644 --- a/gtk/gtkhsv.c +++ b/gtk/gtkhsv.c @@ -70,9 +70,6 @@ typedef struct { /* Window for capturing events */ GdkWindow *window; - /* GC for drawing */ - GdkGC *gc; - /* Dragging mode */ DragMode mode; @@ -308,10 +305,6 @@ gtk_hsv_realize (GtkWidget *widget) gdk_window_set_user_data (priv->window, hsv); widget->style = gtk_style_attach (widget->style, widget->window); - - /* Create GC */ - - priv->gc = gdk_gc_new (parent_window); } /* Unrealize handler for the HSV color selector */ @@ -328,9 +321,6 @@ gtk_hsv_unrealize (GtkWidget *widget) gdk_window_destroy (priv->window); priv->window = NULL; - g_object_unref (priv->gc); - priv->gc = NULL; - GTK_WIDGET_CLASS (gtk_hsv_parent_class)->unrealize (widget); }