[gtk] label: Remove dead NULL check
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] label: Remove dead NULL check
- Date: Tue, 13 Mar 2018 22:46:29 +0000 (UTC)
commit 81a7f8e00c84b9ea5ad512c4252bcb9629e10cf1
Author: Timm Bäder <mail baedert org>
Date: Sat Mar 10 15:44:53 2018 +0100
label: Remove dead NULL check
We only create the gesture when priv->select_info is !NULL.
gtk/gtklabel.c | 6 ------
1 file changed, 6 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 086bc6cb0f..0695f7eff7 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -4471,12 +4471,6 @@ gtk_label_multipress_gesture_pressed (GtkGestureMultiPress *gesture,
const GdkEvent *event;
guint button;
- if (info == NULL)
- {
- gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_DENIED);
- return;
- }
-
button = gtk_gesture_single_get_current_button (GTK_GESTURE_SINGLE (gesture));
sequence = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (gesture));
event = gtk_gesture_get_last_event (GTK_GESTURE (gesture), sequence);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]