mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04: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:
parent
8640e70616
commit
d8e98d4bba
2 changed files with 0 additions and 49 deletions
|
|
@ -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);
|
||||
/*%<
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue