summaryrefslogtreecommitdiffstats
path: root/usr.bin/dig/lib/isc/symtab.c
diff options
context:
space:
mode:
authorjung <jung@openbsd.org>2020-02-17 18:58:39 +0000
committerjung <jung@openbsd.org>2020-02-17 18:58:39 +0000
commita61b9c11d1cfbd02350b4fbc5b6cf37b75fec5ff (patch)
tree0ff52fd4fe2d2913de1df499e5914c7896a21fd9 /usr.bin/dig/lib/isc/symtab.c
parentvmm: check guest cpl and xsave_mask in xsetbv handler (diff)
downloadwireguard-openbsd-a61b9c11d1cfbd02350b4fbc5b6cf37b75fec5ff.tar.xz
wireguard-openbsd-a61b9c11d1cfbd02350b4fbc5b6cf37b75fec5ff.zip
remove unused code
ok florian
Diffstat (limited to 'usr.bin/dig/lib/isc/symtab.c')
-rw-r--r--usr.bin/dig/lib/isc/symtab.c31
1 files changed, 1 insertions, 30 deletions
diff --git a/usr.bin/dig/lib/isc/symtab.c b/usr.bin/dig/lib/isc/symtab.c
index c97eca8c9c5..e9392002020 100644
--- a/usr.bin/dig/lib/isc/symtab.c
+++ b/usr.bin/dig/lib/isc/symtab.c
@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: symtab.c,v 1.1 2020/02/07 09:58:54 florian Exp $ */
+/* $Id: symtab.c,v 1.2 2020/02/17 18:58:39 jung Exp $ */
/*! \file */
@@ -269,32 +269,3 @@ isc_symtab_define(isc_symtab_t *symtab, const char *key, unsigned int type,
return (ISC_R_SUCCESS);
}
-
-isc_result_t
-isc_symtab_undefine(isc_symtab_t *symtab, const char *key, unsigned int type) {
- unsigned int bucket;
- elt_t *elt;
-
- REQUIRE(VALID_SYMTAB(symtab));
- REQUIRE(key != NULL);
-
- FIND(symtab, key, type, bucket, elt);
-
- if (elt == NULL)
- return (ISC_R_NOTFOUND);
-
- if (symtab->undefine_action != NULL)
- (symtab->undefine_action)(elt->key, elt->type,
- elt->value, symtab->undefine_arg);
- UNLINK(symtab->table[bucket], elt, link);
- free(elt);
- symtab->count--;
-
- return (ISC_R_SUCCESS);
-}
-
-unsigned int
-isc_symtab_count(isc_symtab_t *symtab) {
- REQUIRE(VALID_SYMTAB(symtab));
- return (symtab->count);
-}