From 40742d7d31a8c51f416b52a2a203c312bca8795e Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Sun, 27 Apr 2025 21:45:25 -0400 Subject: move free_arr() into util.c --- compressor.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'compressor.c') 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); -} -- cgit v1.2.3