diff options
Diffstat (limited to 'map.c')
| -rw-r--r-- | map.c | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -68,11 +68,6 @@ void *map_closest(const Map *map, const char *prefix) return result; } -bool map_contains(const Map *map, const char *prefix) -{ - return !map_empty(map_prefix(map, prefix)); -} - bool map_put(Map *map, const char *k, const void *value) { size_t len = strlen(k); @@ -331,17 +326,3 @@ void map_free(Map *map) map_clear(map); free(map); } - -static bool free_elem(const char *key, void *value, void *data) -{ - free(value); - return true; -} - -void map_free_full(Map *map) -{ - if (!map) - return; - map_iterate(map, free_elem, NULL); - map_free(map); -} |
