remove dns_zone_expire dead code

Removing `dns_zone_expire` function which is never called (the zone
expiration is detected internally in `lib/dns/zone.c`).
This commit is contained in:
Colin Vidal 2025-11-05 14:57:33 +01:00
parent 32322ffdd8
commit 2a640adbc1
2 changed files with 0 additions and 20 deletions

View file

@ -593,17 +593,6 @@ dns_zone_markdirty(dns_zone_t *zone);
*\li 'zone' to be a valid zone.
*/
void
dns_zone_expire(dns_zone_t *zone);
/*%<
* Mark the zone as expired. If the zone requires dumping cause it to
* be initiated. Set the refresh and retry intervals to there default
* values and unload the zone.
*
* Require
*\li 'zone' to be a valid zone.
*/
void
dns_zone_refresh(dns_zone_t *zone);
/*%<

View file

@ -11762,15 +11762,6 @@ again:
UNLOCK_ZONE(zone);
}
void
dns_zone_expire(dns_zone_t *zone) {
REQUIRE(DNS_ZONE_VALID(zone));
LOCK_ZONE(zone);
zone_expire(zone);
UNLOCK_ZONE(zone);
}
static void
zone_expire(dns_zone_t *zone) {
dns_db_t *db = NULL;