[gtk+/wip/matthiasc/gadget: 1/34] switch: Remove unused code



commit e798efe576b75365f26dfd354c537e9fb41e498d
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Nov 24 19:20:17 2015 -0500

    switch: Remove unused code
    
    The custom drawing function is not used anymore, yay.

 gtk/gtkswitch.c |   17 -----------------
 1 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
index 705c191..221d9ee 100644
--- a/gtk/gtkswitch.c
+++ b/gtk/gtkswitch.c
@@ -580,23 +580,6 @@ gtk_switch_unmap (GtkWidget *widget)
   GTK_WIDGET_CLASS (gtk_switch_parent_class)->unmap (widget);
 }
 
-static inline void
-gtk_switch_paint_handle (GtkWidget    *widget,
-                         cairo_t      *cr,
-                         GdkRectangle *box)
-{
-  GtkStyleContext *context = gtk_widget_get_style_context (widget);
-
-  gtk_style_context_save_to_node (context, gtk_css_gadget_get_node (GTK_SWITCH 
(widget)->priv->slider_gadget));
-
-  gtk_render_slider (context, cr,
-                     box->x, box->y,
-                     box->width, box->height,
-                     GTK_ORIENTATION_HORIZONTAL);
-
-  gtk_style_context_restore (context);
-}
-
 static gboolean
 gtk_switch_render_slider (GtkCssGadget *gadget,
                           cairo_t      *cr,


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