summaryrefslogtreecommitdiff
path: root/src/gib_hash.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-05-04 18:54:13 +0200
committerDaniel Friesel <derf@finalrewind.org>2014-05-04 18:57:00 +0200
commit68037c4d220302a9f7ab250b3a220a5f64217244 (patch)
treef7c200119ab5f9ed30dd1d861d985dfee99a5bf3 /src/gib_hash.c
parentc7d0afa8cde1d351cedc09c111b0f872fbcae15e (diff)
strip unneded parts from giblib, part 1
Not all functions were examined yet. Also TODO: * check strdup / malloc calls (some are apparently unchecked in giblib), maybe use estrdup / emalloc for those * Check includes and update dependency list if needed
Diffstat (limited to 'src/gib_hash.c')
-rw-r--r--src/gib_hash.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gib_hash.c b/src/gib_hash.c
index c839222..054161d 100644
--- a/src/gib_hash.c
+++ b/src/gib_hash.c
@@ -121,6 +121,8 @@ void *gib_hash_get(gib_hash *hash, char *key)
return n?n->data:NULL;
}
+/* unused
+
void gib_hash_remove(gib_hash *hash, char *key)
{
gib_list *n = gib_list_find(GIB_LIST(hash->base), gib_hash_find_callback, key);
@@ -142,3 +144,4 @@ void gib_hash_foreach(gib_hash *hash, void (*foreach_cb)(gib_hash_node *nod
return;
}
+*/