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:
Ian Fan 2018-12-08 22:52:29 +00:00
parent 0c3f0dfd16
commit 19e831ed3d
11 changed files with 39 additions and 55 deletions

View file

@ -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);
}