aboutsummaryrefslogtreecommitdiffstats
path: root/sway/criteria.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-11 15:57:09 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-11 15:57:09 +1000
commit4ad1ccc9dcd1e9090090dfbae153ded1b36af9ff (patch)
tree233e3977ad922df56a76d91e59606019fc21c38f /sway/criteria.c
parentMerge pull request #2447 from ianyfan/swaynag-leak (diff)
downloadsway-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/criteria.c')
-rw-r--r--sway/criteria.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/criteria.c b/sway/criteria.c
index 9077aa9b..a5df1eef 100644
--- a/sway/criteria.c
+++ b/sway/criteria.c
@@ -167,7 +167,7 @@ static bool criteria_matches_view(struct criteria *criteria,
167 return false; 167 return false;
168 } 168 }
169 list_t *urgent_views = create_list(); 169 list_t *urgent_views = create_list();
170 container_for_each_descendant_dfs(&root_container, 170 container_for_each_descendant(&root_container,
171 find_urgent_iterator, urgent_views); 171 find_urgent_iterator, urgent_views);
172 list_stable_sort(urgent_views, cmp_urgent); 172 list_stable_sort(urgent_views, cmp_urgent);
173 struct sway_view *target; 173 struct sway_view *target;
@@ -228,7 +228,7 @@ list_t *criteria_get_views(struct criteria *criteria) {
228 .criteria = criteria, 228 .criteria = criteria,
229 .matches = matches, 229 .matches = matches,
230 }; 230 };
231 container_for_each_descendant_dfs(&root_container, 231 container_for_each_descendant(&root_container,
232 criteria_get_views_iterator, &data); 232 criteria_get_views_iterator, &data);
233 233
234 // Scratchpad items which are hidden are not in the tree. 234 // Scratchpad items which are hidden are not in the tree.