[gtk+] range: remove unused code



commit 83b4e6730722eb4858849a8cafbfcae3f783665d
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun May 4 17:26:57 2014 +0200

    range: remove unused code

 gtk/gtkrange.c |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 6008bae..5b47f1a 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -3741,15 +3741,13 @@ gtk_range_calc_layout (GtkRange *range,
   GtkRangePrivate *priv = range->priv;
   gint slider_width, stepper_size, focus_width, trough_border, stepper_spacing;
   gint slider_length;
-  GtkBorder border, trough_margin;
+  GtkBorder border;
   gint n_steppers;
   gboolean has_steppers_ab;
   gboolean has_steppers_cd;
   gboolean trough_under_steppers;
   GdkRectangle range_rect;
   GtkWidget *widget;
-  GtkStyleContext *context;
-  GtkStateFlags state;
 
   if (!priv->need_recalc)
     return;
@@ -3765,13 +3763,6 @@ gtk_range_calc_layout (GtkRange *range,
    */
 
   widget = GTK_WIDGET (range);
-  context = gtk_widget_get_style_context (widget);
-
-  state = gtk_widget_get_state_flags (widget);
-  gtk_style_context_save (context);
-  gtk_style_context_add_class (context, GTK_STYLE_CLASS_TROUGH);
-  gtk_style_context_get_margin (context, state, &trough_margin);
-  gtk_style_context_restore (context);
 
   gtk_range_get_props (range,
                        &slider_width, &stepper_size,


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