From: Carlos Garnacho Date: Mon, 18 Sep 2023 14:55:54 +0000 (+0200) Subject: gtkmain: Drop redundant code X-Git-Tag: archive/raspbian/4.12.4+ds-3+rpi1^2~21^2~2^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=70bf8ca928f284deea9c9bca26c8bfcf5de88dc5;p=gtk4.git gtkmain: Drop redundant code The common ancestor is already figured out at the beginning of the function, no need to find it again. --- diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index 040fdaefb5..b0a5d2fbc0 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -1191,11 +1191,6 @@ gtk_synthesize_crossing_events (GtkRoot *toplevel, for (widget = new_target; widget; widget = _gtk_widget_get_parent (widget)) gtk_widget_stack_append (&target_array, g_object_ref (widget)); - if (old_target && new_target) - ancestor = gtk_widget_common_ancestor (old_target, new_target); - else - ancestor = NULL; - crossing.direction = GTK_CROSSING_IN; seen_ancestor = FALSE;