]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
remove dns_zone_expire dead code
authorColin Vidal <colin@isc.org>
Wed, 5 Nov 2025 13:57:33 +0000 (14:57 +0100)
committerColin Vidal <colin@isc.org>
Thu, 6 Nov 2025 14:11:45 +0000 (15:11 +0100)
Removing `dns_zone_expire` function which is never called (the zone
expiration is detected internally in `lib/dns/zone.c`).

lib/dns/include/dns/zone.h
lib/dns/zone.c

index 70b79471a4ada09667fa05f4db9f8ead6fc7f1af..e6cbb763725f56424f6873422d9b7f7199a277e9 100644 (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);
 /*%<
index a9acedda42cdea88e443e5fbfb27bac90d4007a6..546de131e32a24158209cd6a96f89ca2c76f3758 100644 (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;