mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +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:
parent
7c82f6f2e3
commit
c6cdf39bb2
@ -287,10 +287,6 @@ dns_zone_setdbtype(dns_zone_t *zone, char *db_type);
|
||||
* ISC_R_SUCCESS
|
||||
*/
|
||||
|
||||
void
|
||||
dns_zone_validate(dns_zone_t *zone);
|
||||
/* XXX MPA */
|
||||
|
||||
void
|
||||
dns_zone_expire(dns_zone_t *zone);
|
||||
/*
|
||||
|
@ -15,7 +15,7 @@
|
||||
* 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>
|
||||
|
||||
@ -571,24 +571,6 @@ dns_zone_getjournal(dns_zone_t *zone) {
|
||||
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
|
||||
dns_zone_load(dns_zone_t *zone) {
|
||||
const char me[] = "dns_zone_load";
|
||||
|
Loading…
x
Reference in New Issue
Block a user