summaryrefslogtreecommitdiff
path: root/gtk/gtkbutton.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2014-05-04 18:51:42 +0200
committerCosimo Cecchi <cosimoc@gnome.org>2014-05-09 11:02:44 -0700
commitbbadfbcd2a2e209e0b0f89f47a42a156cb484581 (patch)
treec50aca0c424b5a139b69ea921394f097ef742fdf /gtk/gtkbutton.c
parente8c906966e36135ded072d56d713d053cc87b8d6 (diff)
downloadgtk+-bbadfbcd2a2e209e0b0f89f47a42a156cb484581.tar.gz
button: remove unused code
Diffstat (limited to 'gtk/gtkbutton.c')
-rw-r--r--gtk/gtkbutton.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index f9aba7a06c..52673d463c 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -1693,13 +1693,9 @@ static void
gtk_button_get_full_border (GtkButton *button,
GtkBorder *full_border)
{
- GtkWidget *widget = GTK_WIDGET (button);
- GtkStyleContext *context;
GtkBorder default_border, padding, border;
int focus_width;
- context = gtk_widget_get_style_context (widget);
-
gtk_button_get_props (button, &default_border, NULL,
&padding, &border);
gtk_style_context_get_style (context,
@@ -1786,7 +1782,6 @@ gtk_button_draw (GtkWidget *widget,
gint x, y;
GtkBorder default_border;
GtkBorder default_outside_border;
- gint focus_width;
GtkAllocation allocation;
GtkStyleContext *context;
GtkStateFlags state;
@@ -1797,10 +1792,6 @@ gtk_button_draw (GtkWidget *widget,
state = gtk_style_context_get_state (context);
gtk_button_get_props (button, &default_border, &default_outside_border, NULL, NULL);
- gtk_style_context_get_style (context,
- "focus-line-width", &focus_width,
- NULL);
-
gtk_widget_get_allocation (widget, &allocation);
x = 0;