]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
remove dns_zone_dump
authorColin Vidal <colin@isc.org>
Tue, 7 Oct 2025 09:42:04 +0000 (11:42 +0200)
committerColin Vidal <colin@isc.org>
Wed, 8 Oct 2025 06:33:33 +0000 (08:33 +0200)
Zone API `dns_zone_dump` is dead code in 9.21 (and was also dead code at
least in 9.20), removing it.

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

index d468256a23bc9b12ed38d644139c5671d983947e..83651ab1d9a606f7307eb26c3914df7a813bb29f 100644 (file)
@@ -613,34 +613,21 @@ dns_zone_flush(dns_zone_t *zone);
  *\li  'zone' to be a valid zone.
  */
 
-isc_result_t
-dns_zone_dump(dns_zone_t *zone);
-/*%<
- *     Write the zone to database.
- *
- * Require:
- *\li  'zone' to be a valid zone.
- */
-
 isc_result_t
 dns_zone_dumptostream(dns_zone_t *zone, FILE *fd, dns_masterformat_t format,
                      const dns_master_style_t *style,
                      const uint32_t            rawversion);
 /*%<
  *    Write the zone to stream 'fd' in the specified 'format'.
- *    If the 'format' is dns_masterformat_text (RFC1035), 'style' also
- *    specifies the file style (e.g., &dns_master_style_default).
- *
- *    dns_zone_dumptostream() is a backward-compatible form of
- *    dns_zone_dumptostream2(), which always uses the dns_masterformat_text
- *    format and the dns_master_style_default style.
  *
- *    dns_zone_dumptostream2() is a backward-compatible form of
- *    dns_zone_dumptostream3(), which always uses the current
- *    default raw file format version.
+ *    If 'format' is dns_masterformat_text (RFC1035), 'style'
+ *    specifies the file style (e.g., &dns_master_style_default),
+ *    and 'rawversion' is ignored.
  *
- *    Note that dns_zone_dumptostream3() is the most flexible form.  It
- *    can also provide the functionality of dns_zone_fulldumptostream().
+ *    If 'format' is dns_masterformat_raw, 'style' is ignored, and
+ *    'rawversion" specifies the format verson of the raw zone file:
+ *    version 0 raw files can be read by all BIND 9 releases;
+ *    version 1 was introduced in BIND 9.9.
  *
  * Require:
  *\li  'zone' to be a valid zone.
index f56b6b7e5314e1a33f3c224ca14e9fc872037645..0e66e8af180f9dd7f4122a6fd2ed8f2f1cd13046 100644 (file)
@@ -12165,22 +12165,6 @@ dns_zone_flush(dns_zone_t *zone) {
        return result;
 }
 
-isc_result_t
-dns_zone_dump(dns_zone_t *zone) {
-       isc_result_t result = ISC_R_ALREADYRUNNING;
-       bool dumping;
-
-       REQUIRE(DNS_ZONE_VALID(zone));
-
-       LOCK_ZONE(zone);
-       dumping = was_dumping(zone);
-       UNLOCK_ZONE(zone);
-       if (!dumping) {
-               result = zone_dump(zone, false);
-       }
-       return result;
-}
-
 static void
 zone_needdump(dns_zone_t *zone, unsigned int delay) {
        isc_time_t dumptime;