From 70bf8ca928f284deea9c9bca26c8bfcf5de88dc5 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 18 Sep 2023 16:55:54 +0200 Subject: [PATCH] gtkmain: Drop redundant code The common ancestor is already figured out at the beginning of the function, no need to find it again. --- gtk/gtkmain.c | 5 ----- 1 file changed, 5 deletions(-) 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; -- 2.30.2