aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 0c860405..2b9eb636 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -319,15 +319,6 @@ struct sway_container *container_destroy_noreaping(struct sway_container *con) {
319 } 319 }
320 } 320 }
321 321
322 // At this point the container being destroyed shouldn't have any children
323 // unless sway is terminating.
324 if (!server.terminating) {
325 if (!sway_assert(!con->children || con->children->length == 0,
326 "Didn't expect to see children here")) {
327 return NULL;
328 }
329 }
330
331 con->destroying = true; 322 con->destroying = true;
332 list_add(server.destroying_containers, con); 323 list_add(server.destroying_containers, con);
333 324