[gnome-builder] gstyle: remove unused variables



commit 76d0935ced7fa46b253a9d54d8be9bd28f81b088
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Tue Sep 11 09:12:12 2018 +0200

    gstyle: remove unused variables

 src/gstyle/gstyle-color-widget.c   | 8 ++------
 src/gstyle/gstyle-palette-widget.c | 4 ----
 2 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/src/gstyle/gstyle-color-widget.c b/src/gstyle/gstyle-color-widget.c
index eecc283fc..a53898134 100644
--- a/src/gstyle/gstyle-color-widget.c
+++ b/src/gstyle/gstyle-color-widget.c
@@ -243,9 +243,7 @@ gstyle_color_widget_on_drag_leave (GtkWidget      *widget,
                                    GdkDragContext *context,
                                    guint           time)
 {
-  GstyleColorWidget *self = (GstyleColorWidget *)widget;
-
-  g_assert (GSTYLE_IS_COLOR_WIDGET (self));
+  g_assert (GSTYLE_IS_COLOR_WIDGET (widget));
   g_assert (GDK_IS_DRAG_CONTEXT (context));
 
   gtk_drag_unhighlight (widget);
@@ -586,9 +584,7 @@ gstyle_color_widget_on_drag_failed (GtkWidget      *widget,
                                     GdkDragContext *context,
                                     GtkDragResult   result)
 {
-  GstyleColorWidget *self = (GstyleColorWidget *)widget;
-
-  g_assert (GSTYLE_IS_COLOR_WIDGET (self));
+  g_assert (GSTYLE_IS_COLOR_WIDGET (widget));
   g_assert (GDK_IS_DRAG_CONTEXT (context));
 
   return FALSE;
diff --git a/src/gstyle/gstyle-palette-widget.c b/src/gstyle/gstyle-palette-widget.c
index df473ee47..dc14fa51f 100644
--- a/src/gstyle/gstyle-palette-widget.c
+++ b/src/gstyle/gstyle-palette-widget.c
@@ -669,11 +669,9 @@ static GtkWidget *
 create_palette_list_item (gpointer item,
                           gpointer user_data)
 {
-  GstylePaletteWidget *self = (GstylePaletteWidget *)user_data;
   GstyleColor *color = (GstyleColor *)item;
   GtkWidget *row;
 
-  g_assert (GSTYLE_IS_PALETTE_WIDGET (self));
   g_assert (GSTYLE_IS_COLOR (color));
 
   row = g_object_new (GSTYLE_TYPE_COLOR_WIDGET,
@@ -689,14 +687,12 @@ static GtkWidget *
 create_palette_flow_item (gpointer item,
                           gpointer user_data)
 {
-  GstylePaletteWidget *self = (GstylePaletteWidget *)user_data;
   GstyleColor *color = (GstyleColor *)item;
   g_autofree gchar *color_string = NULL;
   g_autofree gchar *tooltip = NULL;
   const gchar *name;
   GtkWidget *swatch;
 
-  g_assert (GSTYLE_IS_PALETTE_WIDGET (self));
   g_assert (GSTYLE_IS_COLOR (color));
 
   name = gstyle_color_get_name (color);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]