summaryrefslogtreecommitdiff
path: root/sway/commands/layout.c
diff options
context:
space:
mode:
authorTony Crisci <[email protected]>2018-02-24 13:22:57 -0500
committerTony Crisci <[email protected]>2018-02-24 13:22:57 -0500
commit7262bf655f7a19af1d4c8681be74d70bfc6b8911 (patch)
tree2f949def2ad25fff6e642fcbd30d8c9d2bc8db21 /sway/commands/layout.c
parent5b219a15982b9626f85535c082ee2adb460ad11d (diff)
remove checks for command handlers
Diffstat (limited to 'sway/commands/layout.c')
-rw-r--r--sway/commands/layout.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sway/commands/layout.c b/sway/commands/layout.c
index d953abc8..b0fc5d66 100644
--- a/sway/commands/layout.c
+++ b/sway/commands/layout.c
@@ -7,19 +7,10 @@
struct cmd_results *cmd_layout(int argc, char **argv) {
struct cmd_results *error = NULL;
- if (config->reading) {
- return cmd_results_new(CMD_FAILURE, "layout", "Can't be used in config file.");
- }
- if (!config->active) {
- return cmd_results_new(CMD_FAILURE, "layout", "Can only be used when sway is running.");
- }
if ((error = checkarg(argc, "layout", EXPECTED_MORE_THAN, 0))) {
return error;
}
swayc_t *parent = config->handler_context.current_container;
- if (!sway_assert(parent != NULL, "command called without container context")) {
- return NULL;
- }
// TODO: floating
/*