From: Evan Hunt Date: Thu, 7 Aug 2025 21:24:01 +0000 (-0700) Subject: minor cleanup in sdlz.c X-Git-Tag: v9.21.14~44^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a5344d5910640a1cae9bc6c7f46027e31468e20;p=thirdparty%2Fbind9.git minor cleanup in sdlz.c dns_db_issecure() and dns_db_nodecount() return false and 0, respectively, if they are not implemented, so there's no need to have implementation functions that only return false and 0. --- diff --git a/lib/dns/sdlz.c b/lib/dns/sdlz.c index 14f67b81b04..8ba7cc3dd8c 100644 --- a/lib/dns/sdlz.c +++ b/lib/dns/sdlz.c @@ -1092,21 +1092,6 @@ deleterdataset(dns_db_t *db, dns_dbnode_t *node, dns_dbversion_t *version, return result; } -static bool -issecure(dns_db_t *db) { - UNUSED(db); - - return false; -} - -static unsigned int -nodecount(dns_db_t *db, dns_dbtree_t tree) { - UNUSED(db); - UNUSED(tree); - - return 0; -} - /* * getoriginnode() is used by the update code to find the * dns_rdatatype_dnskey record for a zone @@ -1144,8 +1129,6 @@ static dns_dbmethods_t sdlzdb_methods = { .addrdataset = addrdataset, .subtractrdataset = subtractrdataset, .deleterdataset = deleterdataset, - .issecure = issecure, - .nodecount = nodecount, .getoriginnode = getoriginnode, };