2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Remove unused dns_remote_t functions

Now that setting alternate transfer sources is removed, the functions
to check whether all addresses are considered good have become obsolete.
This commit is contained in:
Matthijs Mekking
2022-12-05 10:21:38 +01:00
parent 8640e70616
commit d8e98d4bba
2 changed files with 0 additions and 49 deletions

View File

@@ -207,15 +207,6 @@ dns_remote_tlsname(dns_remote_t *remote);
* 'remote' is a valid remote structure.
*/
bool
dns_remote_allgood(dns_remote_t *remote);
/*%<
* Return 'true' if all the addresses are considered good.
*
* Requires:
* 'remote' is a valid remote structure.
*/
void
dns_remote_mark(dns_remote_t *remote, bool good);
/*%<
@@ -227,17 +218,6 @@ dns_remote_mark(dns_remote_t *remote, bool good);
* The current address index is lower than the address count.
*/
bool
dns_remote_addrok(dns_remote_t *remote);
/*%<
* Return 'true' if the current address is marked good, 'false'
* otherwise. Also return 'true' if marking servers is not used.
*
* Requires:
* 'remote' is a valid remote structure.
* The current address index is lower than the address count.
*/
bool
dns_remote_done(dns_remote_t *remote);
/*%<

View File

@@ -410,35 +410,6 @@ dns_remote_done(dns_remote_t *remote) {
return (remote->curraddr >= remote->addrcnt);
}
bool
dns_remote_allgood(dns_remote_t *remote) {
REQUIRE(DNS_REMOTE_VALID(remote));
if (remote->ok == NULL) {
return (true);
}
for (unsigned int i = 0; i < remote->addrcnt; i++) {
if (!remote->ok[i]) {
return (false);
}
}
return (true);
}
bool
dns_remote_addrok(dns_remote_t *remote) {
REQUIRE(DNS_REMOTE_VALID(remote));
REQUIRE(remote->curraddr < remote->addrcnt);
if (remote->ok == NULL) {
return (true);
}
return (remote->ok[remote->curraddr]);
}
void
dns_remote_mark(dns_remote_t *remote, bool good) {
REQUIRE(DNS_REMOTE_VALID(remote));