diff options
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index 686a52c7..cb407f0e 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -174,17 +174,9 @@ struct sway_container *container_close(struct sway_container *con) { | |||
174 | 174 | ||
175 | switch (con->type) { | 175 | switch (con->type) { |
176 | case C_TYPES: | 176 | case C_TYPES: |
177 | wlr_log(L_ERROR, "tried to close an invalid container"); | ||
178 | break; | ||
179 | case C_ROOT: | 177 | case C_ROOT: |
180 | wlr_log(L_ERROR, "tried to close the root container"); | ||
181 | break; | ||
182 | case C_OUTPUT: | 178 | case C_OUTPUT: |
183 | container_output_destroy(con); | ||
184 | break; | ||
185 | case C_WORKSPACE: | 179 | case C_WORKSPACE: |
186 | container_workspace_destroy(con); | ||
187 | break; | ||
188 | case C_CONTAINER: | 180 | case C_CONTAINER: |
189 | container_for_each_descendant_dfs(con, container_close_func, NULL); | 181 | container_for_each_descendant_dfs(con, container_close_func, NULL); |
190 | break; | 182 | break; |