From a1191c405d34ce5442053a19057ee8c310fdb2ca Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 2 Jul 2024 09:12:26 +0200 Subject: [PATCH] wayland: Remove dead code This code is called from handlers connected to signals of a MetaWindow. It cannot happen that the window will end up NULL in these, so exchange with a g_assert() as we in fact expect it to be non-NULL. Part-of: --- src/wayland/meta-wayland-activation.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wayland/meta-wayland-activation.c b/src/wayland/meta-wayland-activation.c index 67fe19c40..4caf1f91b 100644 --- a/src/wayland/meta-wayland-activation.c +++ b/src/wayland/meta-wayland-activation.c @@ -384,8 +384,7 @@ complete_pending_activate (MetaWaylandActivation *activation, g_autoptr (GPtrArray) requests = NULL; size_t i; - if (!window) - return; + g_assert (window != NULL); g_signal_handlers_disconnect_by_data (window, activation);