]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolve: drop dns_scope_good_dns_server() 666/head
authorLennart Poettering <lennart@poettering.net>
Thu, 23 Jul 2015 01:10:42 +0000 (03:10 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 23 Jul 2015 01:10:42 +0000 (03:10 +0200)
It's not used anymore since 29815b6c608b836cada5e349d06a96b63eaa65f3,
hence let's remove it from the sources.

src/resolve/resolved-dns-scope.c
src/resolve/resolved-dns-scope.h

index 7b72c090c25364cbf703dd0246c48943218c4e80..0aab1e35d34c1028c1e79c206c77aeebe8e58827 100644 (file)
@@ -420,19 +420,6 @@ int dns_scope_llmnr_membership(DnsScope *s, bool b) {
         return 0;
 }
 
-int dns_scope_good_dns_server(DnsScope *s, int family, const union in_addr_union *address) {
-        assert(s);
-        assert(address);
-
-        if (s->protocol != DNS_PROTOCOL_DNS)
-                return 1;
-
-        if (s->link)
-                return !!link_find_dns_server(s->link,  family, address);
-        else
-                return !!manager_find_dns_server(s->manager, family, address);
-}
-
 static int dns_scope_make_reply_packet(
                 DnsScope *s,
                 uint16_t id,
index 5c5ccc71c537659cb360f31392f9706e5fd2354a..21a160ea392950c4b444a18ec6233958bd505a2d 100644 (file)
@@ -70,7 +70,6 @@ int dns_scope_tcp_socket(DnsScope *s, int family, const union in_addr_union *add
 
 DnsScopeMatch dns_scope_good_domain(DnsScope *s, int ifindex, uint64_t flags, const char *domain);
 int dns_scope_good_key(DnsScope *s, DnsResourceKey *key);
-int dns_scope_good_dns_server(DnsScope *s, int family, const union in_addr_union *address);
 
 DnsServer *dns_scope_get_dns_server(DnsScope *s);
 void dns_scope_next_dns_server(DnsScope *s);