diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-04-27 21:45:25 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-04-27 21:45:25 -0400 |
| commit | 40742d7d31a8c51f416b52a2a203c312bca8795e (patch) | |
| tree | b01457146525bd9cb17be331697e7c3798b70927 /compressor.c | |
| parent | 3421dfc10b2fbb00a3cea97619d7d0feccd79965 (diff) | |
| download | volute-40742d7d31a8c51f416b52a2a203c312bca8795e.zip | |
move free_arr() into util.c
Diffstat (limited to 'compressor.c')
| -rw-r--r-- | compressor.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/compressor.c b/compressor.c index bca4210..358849b 100644 --- a/compressor.c +++ b/compressor.c @@ -26,7 +26,6 @@ static int parse_volume_flow(double val, const char *unit, Flow *flow); static int lsearch(const void *key, const void *base, size_t n, size_t size, int (*cmp)(const void *keyval, const void *datum)); static int toml_filter(const struct dirent *de); static int cmp_flow_unit(const void *key, const void *datum); -static void free_arr(void **arr, int n); /* Load descriptions of all of the compressor maps. @@ -269,11 +268,3 @@ toml_filter(const struct dirent *de) { } return strcmp(".toml", extension) == 0; /* extension is ".toml". */ } - -static void -free_arr(void **arr, int n) { - while (n-- > 0) { - free(arr[n]); - } - free(arr); -} |