summaryrefslogtreecommitdiff
path: root/gtk/gtkbutton.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-12-03 19:07:54 +0100
committerTimm Bäder <mail@baedert.org>2018-12-04 06:30:47 +0100
commit2644da106b8f198ed7eae6ac5bd4c4ee81694223 (patch)
treeb064939393bffe7f15f56b83758484c94ab3c0fc /gtk/gtkbutton.c
parent4860410c4a8c4e04bdeb4f6b82ea65fb96619d7f (diff)
downloadgtk+-2644da106b8f198ed7eae6ac5bd4c4ee81694223.tar.gz
button: Remove some dead code
Diffstat (limited to 'gtk/gtkbutton.c')
-rw-r--r--gtk/gtkbutton.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index 0534814df7..9dae0101cc 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -799,12 +799,6 @@ gtk_real_button_activate (GtkButton *button)
{
GtkWidget *widget = GTK_WIDGET (button);
GtkButtonPrivate *priv = gtk_button_get_instance_private (button);
- GdkDevice *device;
-
- device = gtk_get_current_event_device ();
-
- if (device && gdk_device_get_source (device) != GDK_SOURCE_KEYBOARD)
- device = gdk_device_get_associated_device (device);
if (gtk_widget_get_realized (widget) && !priv->activate_timeout)
{