summaryrefslogtreecommitdiffstats
path: root/usr.bin/dig/lib/dns/name.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/dig/lib/dns/name.c')
-rw-r--r--usr.bin/dig/lib/dns/name.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/usr.bin/dig/lib/dns/name.c b/usr.bin/dig/lib/dns/name.c
index 18d267f136a..2a620bc3f20 100644
--- a/usr.bin/dig/lib/dns/name.c
+++ b/usr.bin/dig/lib/dns/name.c
@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: name.c,v 1.11 2020/02/24 15:09:14 jsg Exp $ */
+/* $Id: name.c,v 1.12 2020/02/24 16:11:20 florian Exp $ */
/*! \file */
#include <ctype.h>
@@ -150,11 +150,6 @@ static dns_name_t root = DNS_NAME_INITABSOLUTE(root_ndata, root_offsets);
/* XXXDCL make const? */
dns_name_t *dns_rootname = &root;
-/*
- * dns_name_t to text post-conversion procedure.
- */
-static dns_name_totextfilter_t totext_filter_proc = NULL;
-
static void
set_offsets(const dns_name_t *name, unsigned char *offsets,
dns_name_t *set_name);
@@ -948,7 +943,6 @@ dns_name_totext2(dns_name_t *name, unsigned int options, isc_buffer_t *target)
unsigned int trem, count;
unsigned int labels;
isc_boolean_t saw_root = ISC_FALSE;
- unsigned int oused = target->used;
isc_boolean_t omit_final_dot =
ISC_TF(options & DNS_NAME_OMITFINALDOT);
@@ -1092,9 +1086,6 @@ dns_name_totext2(dns_name_t *name, unsigned int options, isc_buffer_t *target)
isc_buffer_add(target, tlen - trem);
- if (totext_filter_proc != NULL)
- return ((*totext_filter_proc)(target, oused, saw_root));
-
return (ISC_R_SUCCESS);
}