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

@ -23,9 +23,7 @@ void free_sway_binding(struct sway_binding *binding) {
return;
}
if (binding->keys) {
free_flat_list(binding->keys);
}
free_flat_list(binding->keys);
free(binding->input);
free(binding->command);
free(binding);