From: Colin Vidal Date: Wed, 5 Nov 2025 13:57:33 +0000 (+0100) Subject: remove dns_zone_expire dead code X-Git-Tag: v9.21.16~58^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a640adbc1c02f1e9bd3a105d572a7bf49505d9f;p=thirdparty%2Fbind9.git 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`). --- diff --git a/lib/dns/include/dns/zone.h b/lib/dns/include/dns/zone.h index 70b79471a4a..e6cbb763725 100644 --- a/lib/dns/include/dns/zone.h +++ b/lib/dns/include/dns/zone.h @@ -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); /*%< diff --git a/lib/dns/zone.c b/lib/dns/zone.c index a9acedda42c..546de131e32 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -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;