GtkGestureMultiPress: Remove superfluous NULL check

The rect parameter in gtk_gesture_multi_press_set_area is annotated as
nullable and the code handles the rect==NULL case, but the
g_return_if_fail kept that case from ever happening.
This commit is contained in:
Timm Bäder 2017-04-27 17:54:49 +02:00
parent 80fe1dfe02
commit 79de641e9b

View File

@ -403,7 +403,7 @@ gtk_gesture_multi_press_new (GtkWidget *widget)
/**
* gtk_gesture_multi_press_set_area:
* @gesture: a #GtkGesture
* @gesture: a #GtkGestureMultiPress
* @rect: (allow-none): rectangle to receive coordinates on
*
* If @rect is non-%NULL, the press area will be checked to be
@ -425,7 +425,6 @@ gtk_gesture_multi_press_set_area (GtkGestureMultiPress *gesture,
GtkGestureMultiPressPrivate *priv;
g_return_if_fail (GTK_IS_GESTURE_MULTI_PRESS (gesture));
g_return_if_fail (rect != NULL);
priv = gtk_gesture_multi_press_get_instance_private (gesture);