mirror of
https://github.com/swaywm/sway.git
synced 2025-11-25 06:59:48 -05:00
list.c: Remove list_foreach
Most occurrences have been replaced by `free_flat_list` which has been moved from stringop.c to list.c. The rest have been replaced by for loops.
This commit is contained in:
parent
0c3f0dfd16
commit
19e831ed3d
11 changed files with 39 additions and 55 deletions
|
|
@ -53,9 +53,7 @@ void free_bar_config(struct bar_config *bar) {
|
|||
free_bar_binding(binding);
|
||||
}
|
||||
list_free(bar->bindings);
|
||||
if (bar->outputs) {
|
||||
free_flat_list(bar->outputs);
|
||||
}
|
||||
free_flat_list(bar->outputs);
|
||||
if (bar->pid != 0) {
|
||||
terminate_swaybar(bar->pid);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue