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:
parent
949eb8b638
commit
a1191c405d
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue