mirror of
https://github.com/swaywm/sway.git
synced 2025-11-08 13:29:50 -05:00
Remove container_for_each_descendant_bfs
The function was not used. Also renames container_for_each_descendant_dfs to just container_for_each_descendant.
This commit is contained in:
parent
e474d87e42
commit
4ad1ccc9dc
9 changed files with 15 additions and 62 deletions
|
|
@ -31,7 +31,7 @@ struct cmd_results *cmd_hide_edge_borders(int argc, char **argv) {
|
|||
"<none|vertical|horizontal|both|smart>'");
|
||||
}
|
||||
|
||||
container_for_each_descendant_dfs(&root_container, _configure_view, NULL);
|
||||
container_for_each_descendant(&root_container, _configure_view, NULL);
|
||||
|
||||
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ struct cmd_results *cmd_show_marks(int argc, char **argv) {
|
|||
config->show_marks = parse_boolean(argv[0], config->show_marks);
|
||||
|
||||
if (config->show_marks) {
|
||||
container_for_each_descendant_dfs(&root_container,
|
||||
container_for_each_descendant(&root_container,
|
||||
rebuild_marks_iterator, NULL);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ struct cmd_results *cmd_unmark(int argc, char **argv) {
|
|||
view_find_and_unmark(mark);
|
||||
} else {
|
||||
// Remove all marks from all views
|
||||
container_for_each_descendant_dfs(&root_container,
|
||||
container_for_each_descendant(&root_container,
|
||||
remove_all_marks_iterator, NULL);
|
||||
}
|
||||
free(mark);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue