mirror of
https://github.com/swaywm/sway.git
synced 2025-11-17 06:59:48 -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
|
|
@ -167,7 +167,7 @@ static bool criteria_matches_view(struct criteria *criteria,
|
|||
return false;
|
||||
}
|
||||
list_t *urgent_views = create_list();
|
||||
container_for_each_descendant_dfs(&root_container,
|
||||
container_for_each_descendant(&root_container,
|
||||
find_urgent_iterator, urgent_views);
|
||||
list_stable_sort(urgent_views, cmp_urgent);
|
||||
struct sway_view *target;
|
||||
|
|
@ -228,7 +228,7 @@ list_t *criteria_get_views(struct criteria *criteria) {
|
|||
.criteria = criteria,
|
||||
.matches = matches,
|
||||
};
|
||||
container_for_each_descendant_dfs(&root_container,
|
||||
container_for_each_descendant(&root_container,
|
||||
criteria_get_views_iterator, &data);
|
||||
|
||||
// Scratchpad items which are hidden are not in the tree.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue