From 312fdf313f2ec11907328174f38ad3607eab7a5b Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Mon, 30 Apr 2018 08:47:38 +1000 Subject: [PATCH] Remove arrange_windows() After the refactor, this function is no longer called. --- include/sway/tree/arrange.h | 2 -- sway/tree/arrange.c | 24 ------------------------ 2 files changed, 26 deletions(-) diff --git a/include/sway/tree/arrange.h b/include/sway/tree/arrange.h index 7ccb88a25..ce95cfe97 100644 --- a/include/sway/tree/arrange.h +++ b/include/sway/tree/arrange.h @@ -3,8 +3,6 @@ struct sway_container; -void arrange_windows(struct sway_container *container); - // Determine the root container's geometry, then iterate to everything below void arrange_root(void); diff --git a/sway/tree/arrange.c b/sway/tree/arrange.c index dd87ce7ca..e1f3ad132 100644 --- a/sway/tree/arrange.c +++ b/sway/tree/arrange.c @@ -17,30 +17,6 @@ struct sway_container root_container; -void arrange_windows(struct sway_container *container) { - switch (container->type) { - case C_ROOT: - arrange_root(); - break; - case C_OUTPUT: - arrange_output(container); - break; - case C_WORKSPACE: - arrange_workspace(container); - break; - case C_CONTAINER: - arrange_children_of(container); - break; - case C_VIEW: - // ignore - break; - case C_TYPES: - sway_assert( - false, "Called arrange_windows() with container type C_TYPES"); - break; - } -} - void arrange_root() { if (config->reloading) { return;