diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2020-11-02 14:30:52 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2020-11-13 11:41:44 +0100 |
| commit | 2a4edf973fe21ba370318f0c509ea261f3e7b28d (patch) | |
| tree | f6ae9a09081324a29148885ed9fcd793fdf61bbe /map.c | |
| parent | 3d3bacd8f64f7e11519711a8d348c5e99d9e2ee3 (diff) | |
| download | vis-2a4edf973fe21ba370318f0c509ea261f3e7b28d.tar.gz vis-2a4edf973fe21ba370318f0c509ea261f3e7b28d.tar.xz | |
map: remove no longer used map_leaf function
Diffstat (limited to 'map.c')
| -rw-r--r-- | map.c | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -78,19 +78,6 @@ bool map_contains(const Map *map, const char *prefix) return !map_empty(map_prefix(map, prefix)); } -static bool leaf(const char *key, void *value, void *data) -{ - int *nodes = data; - return (*nodes)++ < 1; -} - -bool map_leaf(const Map *map, const char *prefix) -{ - int nodes = 0; - map_iterate(map_prefix(map, prefix), leaf, &nodes); - return nodes == 1; -} - bool map_put(Map *map, const char *k, const void *value) { size_t len = strlen(k); |
