]> de.git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
This was an experiment that snuk it's way inside that commit.
authorDale Weiler <killfieldengine@gmail.com>
Sun, 2 Jun 2013 04:32:20 +0000 (04:32 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Sun, 2 Jun 2013 04:32:20 +0000 (04:32 +0000)
util.c

diff --git a/util.c b/util.c
index cc825690cc4e78136fd40d8a6dde03de82978972..3e81a51c0bb89f6f19251b85a6614ab4e306abea 100644 (file)
--- a/util.c
+++ b/util.c
@@ -732,28 +732,6 @@ void util_htrem(hash_table_t *ht, void (*callback)(void *data)) {
     mem_d(ht);
 }
 
-void util_htremkey(hash_table_t *ht, void (*callback)(void *data, const char *key)) {
-    size_t i = 0;
-    for (; i < ht->size; i++) {
-        hash_node_t *n = ht->table[i];
-        hash_node_t *p;
-
-        /* free in list */
-        while (n) {
-            if (callback)
-                callback(n->value, n->key);
-            mem_d(n->key);
-            p = n;
-            n = n->next;
-            mem_d(p);
-        }
-
-    }
-    /* free table */
-    mem_d(ht->table);
-    mem_d(ht);
-}
-
 void util_htrmh(hash_table_t *ht, const char *key, size_t bin, void (*cb)(void*)) {
     hash_node_t **pair = &ht->table[bin];
     hash_node_t *tmp;