wayland/subsurface: Remove redundant g_node_unlink call

If the sub-surface has no parent, the node was already unlinked by
get_subsurface_placement_op.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3364>
This commit is contained in:
Michel Dänzer 2023-11-06 16:56:23 +01:00 committed by Marge Bot
parent a2863fc1ea
commit 9f4eee33a2

View File

@ -417,10 +417,6 @@ wl_subsurface_destructor (struct wl_resource *resource)
surface->protocol_state.parent = NULL;
}
else
{
g_node_unlink (surface->protocol_state.subsurface_branch_node);
}
surface->wl_subsurface = NULL;
}