mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-06 10:50:08 +00:00
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:
parent
80fe1dfe02
commit
79de641e9b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user