From 6773fb173ec18e5c5fa07d3065878252aa1c8196 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 30 Jul 2003 01:04:15 +0000 Subject: [PATCH] remove redundant check [RT #8539] --- lib/dns/include/dns/rdata.h | 10 +--------- lib/dns/rdata.c | 3 +-- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/lib/dns/include/dns/rdata.h b/lib/dns/include/dns/rdata.h index 46c18824e0..fbe4830f43 100644 --- a/lib/dns/include/dns/rdata.h +++ b/lib/dns/include/dns/rdata.h @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: rdata.h,v 1.51.2.2 2002/02/20 02:17:25 marka Exp $ */ +/* $Id: rdata.h,v 1.51.2.3 2003/07/30 01:04:15 marka Exp $ */ #ifndef DNS_RDATA_H #define DNS_RDATA_H 1 @@ -468,10 +468,6 @@ dns_rdatatype_ismeta(dns_rdatatype_t type); /* * Return true iff the rdata type 'type' is a meta-type * like ANY or AXFR. - * - * Requires: - * 'type' is a valid rdata type. - * */ isc_boolean_t @@ -490,10 +486,6 @@ dns_rdataclass_ismeta(dns_rdataclass_t rdclass); /* * Return true iff the rdata class 'rdclass' is a meta-class * like ANY or NONE. - * - * Requires: - * 'rdclass' is a valid rdata class. - * */ isc_boolean_t diff --git a/lib/dns/rdata.c b/lib/dns/rdata.c index 7d2c20e24f..44cbde4726 100644 --- a/lib/dns/rdata.c +++ b/lib/dns/rdata.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: rdata.c,v 1.147.2.10 2003/07/23 06:57:48 marka Exp $ */ +/* $Id: rdata.c,v 1.147.2.11 2003/07/30 01:04:15 marka Exp $ */ #include #include @@ -2052,7 +2052,6 @@ dns_rdatatype_questiononly(dns_rdatatype_t type) { isc_boolean_t dns_rdataclass_ismeta(dns_rdataclass_t rdclass) { - REQUIRE(rdclass < 65536); if (rdclass == dns_rdataclass_reserved0 || rdclass == dns_rdataclass_none