]> git.meshlink.io Git - catta/blobdiff - avahi-core/hashmap.c
* move unicast DNS server registration/browsing routines to their own header dns...
[catta] / avahi-core / hashmap.c
index 24a12492523cd19d1cbef8cc1e025dd3001578a7..07bd7078cfd87b54c95a4873cf8b00a810264a3d 100644 (file)
@@ -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;