summaryrefslogtreecommitdiff
path: root/sbin/dhclient/alloc.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2005-07-11 18:09:10 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2005-07-11 18:09:10 +0000
commit84255383ba9c6855176eb3eee218da11452a21db (patch)
tree52b7966203e2a47e5a340eb193e09cc9b9a1d024 /sbin/dhclient/alloc.c
parentd2a2fb48cc95c79fc8a3bb755bc096c18fd4677b (diff)
Expunge unused hashing code and variables.
Diffstat (limited to 'sbin/dhclient/alloc.c')
-rw-r--r--sbin/dhclient/alloc.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/sbin/dhclient/alloc.c b/sbin/dhclient/alloc.c
index cabb76d4298..d0a7d4afe94 100644
--- a/sbin/dhclient/alloc.c
+++ b/sbin/dhclient/alloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: alloc.c,v 1.9 2004/05/04 20:28:40 deraadt Exp $ */
+/* $OpenBSD: alloc.c,v 1.10 2005/07/11 18:09:09 krw Exp $ */
/* Memory allocation... */
@@ -52,25 +52,3 @@ new_string_list(size_t size)
rval->string = ((char *)rval) + sizeof(struct string_list);
return (rval);
}
-
-struct hash_table *
-new_hash_table(int count)
-{
- struct hash_table *rval;
-
- rval = calloc(1, sizeof(struct hash_table) -
- (DEFAULT_HASH_SIZE * sizeof(struct hash_bucket *)) +
- (count * sizeof(struct hash_bucket *)));
- if (rval == NULL)
- return (NULL);
- rval->hash_count = count;
- return (rval);
-}
-
-struct hash_bucket *
-new_hash_bucket(void)
-{
- struct hash_bucket *rval = calloc(1, sizeof(struct hash_bucket));
-
- return (rval);
-}