2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Removed the function dns_zone_validate(). It was unused,

undocumented, marked XXX, and buggy (it contained a switch
statement that compared an rdclass to a set of zone types).
This commit is contained in:
Andreas Gustafsson
2000-05-25 21:13:39 +00:00
parent 7c82f6f2e3
commit c6cdf39bb2
2 changed files with 1 additions and 23 deletions

View File

@@ -287,10 +287,6 @@ dns_zone_setdbtype(dns_zone_t *zone, char *db_type);
* ISC_R_SUCCESS * ISC_R_SUCCESS
*/ */
void
dns_zone_validate(dns_zone_t *zone);
/* XXX MPA */
void void
dns_zone_expire(dns_zone_t *zone); dns_zone_expire(dns_zone_t *zone);
/* /*

View File

@@ -15,7 +15,7 @@
* SOFTWARE. * SOFTWARE.
*/ */
/* $Id: zone.c,v 1.128 2000/05/25 21:05:43 gson Exp $ */ /* $Id: zone.c,v 1.129 2000/05/25 21:13:37 gson Exp $ */
#include <config.h> #include <config.h>
@@ -571,24 +571,6 @@ dns_zone_getjournal(dns_zone_t *zone) {
return (zone->journal); return (zone->journal);
} }
void
dns_zone_validate(dns_zone_t *zone) {
REQUIRE(DNS_ZONE_VALID(zone));
REQUIRE(dns_name_countlabels(&zone->origin) != 0);
REQUIRE(zone->type != dns_zone_none);
switch (zone->rdclass) {
case dns_zone_master:
case dns_zone_slave:
case dns_zone_stub:
REQUIRE(zone->dbname != NULL);
REQUIRE(zone->rdclass != dns_rdataclass_none);
break;
}
REQUIRE(zone->db_type != NULL);
}
isc_result_t isc_result_t
dns_zone_load(dns_zone_t *zone) { dns_zone_load(dns_zone_t *zone) {
const char me[] = "dns_zone_load"; const char me[] = "dns_zone_load";