From 4e7cf6defc35579246596ec27f17286b7b20ec79 Mon Sep 17 00:00:00 2001 From: florian Date: Sat, 25 Jun 2022 15:38:22 +0000 Subject: [PATCH] remove unused struct members --- usr.bin/dig/lib/dns/include/dns/rdataset.h | 7 +------ usr.bin/dig/lib/dns/rdatalist.c | 5 +---- usr.bin/dig/lib/dns/rdataset.c | 9 --------- 3 files changed, 2 insertions(+), 19 deletions(-) diff --git a/usr.bin/dig/lib/dns/include/dns/rdataset.h b/usr.bin/dig/lib/dns/include/dns/rdataset.h index 5fbf3e03587..785821dabf2 100644 --- a/usr.bin/dig/lib/dns/include/dns/rdataset.h +++ b/usr.bin/dig/lib/dns/include/dns/rdataset.h @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: rdataset.h,v 1.13 2022/06/25 12:14:18 jsg Exp $ */ +/* $Id: rdataset.h,v 1.14 2022/06/25 15:38:22 florian Exp $ */ #ifndef DNS_RDATASET_H #define DNS_RDATASET_H 1 @@ -106,11 +106,6 @@ struct dns_rdataset { */ void * private1; void * private2; - void * private3; - unsigned int privateuint4; - void * private5; - void * private6; - void * private7; /*@}*/ }; diff --git a/usr.bin/dig/lib/dns/rdatalist.c b/usr.bin/dig/lib/dns/rdatalist.c index dceedb6a07f..a715a89c762 100644 --- a/usr.bin/dig/lib/dns/rdatalist.c +++ b/usr.bin/dig/lib/dns/rdatalist.c @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: rdatalist.c,v 1.4 2022/06/25 12:14:18 jsg Exp $ */ +/* $Id: rdatalist.c,v 1.5 2022/06/25 15:38:22 florian Exp $ */ /*! \file */ @@ -73,9 +73,6 @@ dns_rdatalist_tordataset(dns_rdatalist_t *rdatalist, rdataset->trust = 0; rdataset->private1 = rdatalist; rdataset->private2 = NULL; - rdataset->private3 = NULL; - rdataset->privateuint4 = 0; - rdataset->private5 = NULL; return (ISC_R_SUCCESS); } diff --git a/usr.bin/dig/lib/dns/rdataset.c b/usr.bin/dig/lib/dns/rdataset.c index cd9b5f12357..18e7854a144 100644 --- a/usr.bin/dig/lib/dns/rdataset.c +++ b/usr.bin/dig/lib/dns/rdataset.c @@ -47,11 +47,6 @@ dns_rdataset_init(dns_rdataset_t *rdataset) { rdataset->count = UINT32_MAX; rdataset->private1 = NULL; rdataset->private2 = NULL; - rdataset->private3 = NULL; - rdataset->privateuint4 = 0; - rdataset->private5 = NULL; - rdataset->private6 = NULL; - rdataset->private7 = NULL; } void @@ -75,10 +70,6 @@ dns_rdataset_disassociate(dns_rdataset_t *rdataset) { rdataset->count = UINT32_MAX; rdataset->private1 = NULL; rdataset->private2 = NULL; - rdataset->private3 = NULL; - rdataset->privateuint4 = 0; - rdataset->private5 = NULL; - rdataset->private6 = NULL; } int -- 2.20.1