diff options
Diffstat (limited to 'src/libudev/hashmap.c')
-rw-r--r-- | src/libudev/hashmap.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/libudev/hashmap.c b/src/libudev/hashmap.c index 58702d7d59..c483fbad11 100644 --- a/src/libudev/hashmap.c +++ b/src/libudev/hashmap.c @@ -443,25 +443,6 @@ unsigned hashmap_size(Hashmap *h) { return h->n_entries; } -int hashmap_merge(Hashmap *h, Hashmap *other) { - struct hashmap_entry *e; - - assert(h); - - if (!other) - return 0; - - for (e = other->iterate_list_head; e; e = e->iterate_next) { - int r; - - if ((r = hashmap_put(h, e->key, e->value)) < 0) - if (r != -EEXIST) - return r; - } - - return 0; -} - char **hashmap_get_strv(Hashmap *h) { char **sv; Iterator it; |