mirror of
https://github.com/swaywm/sway.git
synced 2026-03-12 05:34:29 -04: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
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue