From: Dale Weiler Date: Sun, 2 Jun 2013 04:32:20 +0000 (+0000) Subject: This was an experiment that snuk it's way inside that commit. X-Git-Tag: v0.3.0~151^2~22 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c8daf483f3453c4c57380d3530570abbb6b6173e;p=xonotic%2Fgmqcc.git This was an experiment that snuk it's way inside that commit. --- diff --git a/util.c b/util.c index cc82569..3e81a51 100644 --- 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;