label: Remove dead NULL check

We only create the gesture when priv->select_info is !NULL.
This commit is contained in:
Timm Bäder 2018-03-10 15:44:53 +01:00
parent f91ea2ce37
commit 81a7f8e00c

View File

@ -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);