X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-core%2Fhashmap.c;h=07bd7078cfd87b54c95a4873cf8b00a810264a3d;hb=1e14daab904b4c74e1ee4edd081d42478aa5d12a;hp=24a12492523cd19d1cbef8cc1e025dd3001578a7;hpb=1ffedb586bd2fb6daa3970304fac7c5b415cd38f;p=catta diff --git a/avahi-core/hashmap.c b/avahi-core/hashmap.c index 24a1249..07bd707 100644 --- a/avahi-core/hashmap.c +++ b/avahi-core/hashmap.c @@ -124,20 +124,6 @@ void* avahi_hashmap_lookup(AvahiHashmap *m, const void *key) { return e->value; } -void* avahi_hashmap_steal(AvahiHashmap *m, const void *key) { - Entry *e; - void *v; - - assert(m); - - if (!(e = entry_get(m, key))) - return NULL; - - v = e->value; - entry_free(m, e, 1); - return v; -} - int avahi_hashmap_insert(AvahiHashmap *m, void *key, void *value) { unsigned idx; Entry *e;