1
0
Fork 0

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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3860>
This commit is contained in:
Carlos Garnacho 2024-07-02 09:12:26 +02:00
parent 949eb8b638
commit a1191c405d

View file

@ -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);