[gtk+] switch: Remove some unused code



commit 2b6b5c1c8fecdd66172516812ed3f1825619dafc
Author: Timm Bäder <mail baedert org>
Date:   Mon Jan 16 18:15:22 2017 +0100

    switch: Remove some unused code

 gtk/gtkswitch.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
index 04413ad..ede2fc4 100644
--- a/gtk/gtkswitch.c
+++ b/gtk/gtkswitch.c
@@ -191,9 +191,7 @@ gtk_switch_multipress_gesture_pressed (GtkGestureMultiPress *gesture,
                                        GtkSwitch            *sw)
 {
   GtkSwitchPrivate *priv = sw->priv;
-  GtkAllocation allocation;
 
-  gtk_widget_get_allocation (GTK_WIDGET (sw), &allocation);
   gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED);
 
   /* If the press didn't happen in the draggable handle,
@@ -257,15 +255,12 @@ gtk_switch_pan_gesture_drag_end (GtkGestureDrag *gesture,
 {
   GtkSwitchPrivate *priv = sw->priv;
   GdkEventSequence *sequence;
-  GtkAllocation allocation;
   gboolean active;
 
   sequence = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (gesture));
 
   if (gtk_gesture_get_sequence_state (GTK_GESTURE (gesture), sequence) == GTK_EVENT_SEQUENCE_CLAIMED)
     {
-      gtk_widget_get_allocation (GTK_WIDGET (sw), &allocation);
-
       /* if half the handle passed the middle of the switch, then we
        * consider it to be on
        */


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