diff --git a/lib/dns/include/dns/remote.h b/lib/dns/include/dns/remote.h index bf13767954..6af58bcebd 100644 --- a/lib/dns/include/dns/remote.h +++ b/lib/dns/include/dns/remote.h @@ -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); /*%< diff --git a/lib/dns/remote.c b/lib/dns/remote.c index 87974d885c..c7691bc376 100644 --- a/lib/dns/remote.c +++ b/lib/dns/remote.c @@ -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));