diff options
Diffstat (limited to 'sway/commands/commands.c')
-rw-r--r-- | sway/commands/commands.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/sway/commands/commands.c b/sway/commands/commands.c deleted file mode 100644 index 0c64970c..00000000 --- a/sway/commands/commands.c +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | #include <stdbool.h> | ||
2 | #include <string.h> | ||
3 | #include "sway/commands.h" | ||
4 | #include "sway/config.h" | ||
5 | #include "list.h" | ||
6 | #include "log.h" | ||
7 | |||
8 | struct cmd_results *cmd_commands(int argc, char **argv) { | ||
9 | struct cmd_results *error = NULL; | ||
10 | if ((error = checkarg(argc, "commands", EXPECTED_EQUAL_TO, 1))) { | ||
11 | return error; | ||
12 | } | ||
13 | if ((error = check_security_config())) { | ||
14 | return error; | ||
15 | } | ||
16 | |||
17 | if (strcmp(argv[0], "{") != 0) { | ||
18 | return cmd_results_new(CMD_FAILURE, "commands", "Expected block declaration"); | ||
19 | } | ||
20 | |||
21 | if (!config->reading) { | ||
22 | return cmd_results_new(CMD_FAILURE, "commands", "Can only be used in config file."); | ||
23 | } | ||
24 | |||
25 | return cmd_results_new(CMD_BLOCK_COMMANDS, NULL, NULL); | ||
26 | } | ||