]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Remove unused void_ptr_hash_function and void_ptr_compare_function
authorSteffan Karger <steffan.karger@fox-it.com>
Wed, 19 Sep 2018 16:20:09 +0000 (18:20 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 19 Sep 2018 20:24:16 +0000 (22:24 +0200)
Both functions are never used, so let's get rid of them.

Signed-off-by: Steffan Karger <steffan.karger@fox-it.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1537374009-11133-1-git-send-email-steffan.karger@fox-it.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg17473.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/list.c
src/openvpn/list.h

index 09e393ad55b841d0f33ef6a14120385ca9ac8256..6023ea68ee4454f92a6001fd71599fc23986e3f3 100644 (file)
@@ -222,18 +222,6 @@ hash_remove_marked(struct hash *hash, struct hash_bucket *bucket)
     }
 }
 
-uint32_t
-void_ptr_hash_function(const void *key, uint32_t iv)
-{
-    return hash_func((const void *)&key, sizeof(key), iv);
-}
-
-bool
-void_ptr_compare_function(const void *key1, const void *key2)
-{
-    return key1 == key2;
-}
-
 void
 hash_iterator_init_range(struct hash *hash,
                          struct hash_iterator *hi,
index b67301cefbd464ab9008596dc2535daa759cc868..6177157752dfee015b09dd3a0a7fda2bf92aad62 100644 (file)
@@ -116,10 +116,6 @@ void hash_iterator_free(struct hash_iterator *hi);
 
 uint32_t hash_func(const uint8_t *k, uint32_t length, uint32_t initval);
 
-uint32_t void_ptr_hash_function(const void *key, uint32_t iv);
-
-bool void_ptr_compare_function(const void *key1, const void *key2);
-
 #ifdef LIST_TEST
 void list_test(void);