summaryrefslogtreecommitdiff
path: root/usr.bin/dig/lib/dns/rdata/generic/nid_104.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/dig/lib/dns/rdata/generic/nid_104.c')
-rw-r--r--usr.bin/dig/lib/dns/rdata/generic/nid_104.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/usr.bin/dig/lib/dns/rdata/generic/nid_104.c b/usr.bin/dig/lib/dns/rdata/generic/nid_104.c
index 5894fa02ea3..4e825d7ee7d 100644
--- a/usr.bin/dig/lib/dns/rdata/generic/nid_104.c
+++ b/usr.bin/dig/lib/dns/rdata/generic/nid_104.c
@@ -81,24 +81,6 @@ towire_nid(ARGS_TOWIRE) {
-static inline isc_result_t
-tostruct_nid(ARGS_TOSTRUCT) {
- isc_region_t region;
- dns_rdata_nid_t *nid = target;
-
- REQUIRE(rdata->type == dns_rdatatype_nid);
- REQUIRE(target != NULL);
- REQUIRE(rdata->length == 10);
-
- nid->common.rdclass = rdata->rdclass;
- nid->common.rdtype = rdata->type;
- ISC_LINK_INIT(&nid->common, link);
-
- dns_rdata_toregion(rdata, &region);
- nid->pref = uint16_fromregion(&region);
- memmove(nid->nid, region.base, region.length);
- return (ISC_R_SUCCESS);
-}