diff options
author | 2018-08-11 15:57:09 +1000 | |
---|---|---|
committer | 2018-08-11 15:57:09 +1000 | |
commit | 4ad1ccc9dcd1e9090090dfbae153ded1b36af9ff (patch) | |
tree | 233e3977ad922df56a76d91e59606019fc21c38f /sway/commands | |
parent | Merge pull request #2447 from ianyfan/swaynag-leak (diff) | |
download | sway-4ad1ccc9dcd1e9090090dfbae153ded1b36af9ff.tar.gz sway-4ad1ccc9dcd1e9090090dfbae153ded1b36af9ff.tar.zst sway-4ad1ccc9dcd1e9090090dfbae153ded1b36af9ff.zip |
Remove container_for_each_descendant_bfs
The function was not used.
Also renames container_for_each_descendant_dfs to just
container_for_each_descendant.
Diffstat (limited to 'sway/commands')
-rw-r--r-- | sway/commands/hide_edge_borders.c | 2 | ||||
-rw-r--r-- | sway/commands/show_marks.c | 2 | ||||
-rw-r--r-- | sway/commands/unmark.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sway/commands/hide_edge_borders.c b/sway/commands/hide_edge_borders.c index 7d70055b..bb390f5f 100644 --- a/sway/commands/hide_edge_borders.c +++ b/sway/commands/hide_edge_borders.c | |||
@@ -31,7 +31,7 @@ struct cmd_results *cmd_hide_edge_borders(int argc, char **argv) { | |||
31 | "<none|vertical|horizontal|both|smart>'"); | 31 | "<none|vertical|horizontal|both|smart>'"); |
32 | } | 32 | } |
33 | 33 | ||
34 | container_for_each_descendant_dfs(&root_container, _configure_view, NULL); | 34 | container_for_each_descendant(&root_container, _configure_view, NULL); |
35 | 35 | ||
36 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 36 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); |
37 | } | 37 | } |
diff --git a/sway/commands/show_marks.c b/sway/commands/show_marks.c index 434a0e27..cf153a0a 100644 --- a/sway/commands/show_marks.c +++ b/sway/commands/show_marks.c | |||
@@ -24,7 +24,7 @@ struct cmd_results *cmd_show_marks(int argc, char **argv) { | |||
24 | config->show_marks = parse_boolean(argv[0], config->show_marks); | 24 | config->show_marks = parse_boolean(argv[0], config->show_marks); |
25 | 25 | ||
26 | if (config->show_marks) { | 26 | if (config->show_marks) { |
27 | container_for_each_descendant_dfs(&root_container, | 27 | container_for_each_descendant(&root_container, |
28 | rebuild_marks_iterator, NULL); | 28 | rebuild_marks_iterator, NULL); |
29 | } | 29 | } |
30 | 30 | ||
diff --git a/sway/commands/unmark.c b/sway/commands/unmark.c index 1ce2c56b..44ceccee 100644 --- a/sway/commands/unmark.c +++ b/sway/commands/unmark.c | |||
@@ -52,7 +52,7 @@ struct cmd_results *cmd_unmark(int argc, char **argv) { | |||
52 | view_find_and_unmark(mark); | 52 | view_find_and_unmark(mark); |
53 | } else { | 53 | } else { |
54 | // Remove all marks from all views | 54 | // Remove all marks from all views |
55 | container_for_each_descendant_dfs(&root_container, | 55 | container_for_each_descendant(&root_container, |
56 | remove_all_marks_iterator, NULL); | 56 | remove_all_marks_iterator, NULL); |
57 | } | 57 | } |
58 | free(mark); | 58 | free(mark); |