[gtk+/wip/focusprops: 40/48] spinbutton: remove unused code



commit 64c82e86e092973d9458606723e7564a0d7f4b90
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun May 4 20:20:19 2014 +0200

    spinbutton: remove unused code

 gtk/gtkspinbutton.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index 5b50894..2bd8dc5 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -1156,24 +1156,16 @@ gtk_spin_button_get_preferred_width (GtkWidget *widget,
   GtkSpinButton *spin_button = GTK_SPIN_BUTTON (widget);
   GtkSpinButtonPrivate *priv = spin_button->priv;
   GtkEntry *entry = GTK_ENTRY (widget);
-  GtkStyleContext *style_context;
-
-  style_context = gtk_widget_get_style_context (widget);
 
   GTK_WIDGET_CLASS (gtk_spin_button_parent_class)->get_preferred_width (widget, minimum, natural);
 
   if (gtk_entry_get_width_chars (entry) < 0)
     {
       gint width, w;
-      gint focus_width;
       GtkBorder borders;
       PangoLayout *layout;
       gchar *str;
 
-      gtk_style_context_get_style (style_context,
-                                   "focus-line-width", &focus_width,
-                                   NULL);
-
       layout = pango_layout_copy (gtk_entry_get_layout (entry));
 
       /* Get max of MIN_SPIN_BUTTON_WIDTH, size of upper, size of lower */


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