From fc0d0e75724169511714e56780e45efcdf321bcd Mon Sep 17 00:00:00 2001 From: kpayson64 Date: Tue, 13 Mar 2018 12:22:24 -0700 Subject: Simplify dn_resolver_ares --- .../client_channel/resolver/dns/c_ares/dns_resolver_ares.cc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src') diff --git a/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc b/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc index a895afa784..c63de3c509 100644 --- a/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc +++ b/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc @@ -443,14 +443,6 @@ class AresDnsResolverFactory : public ResolverFactory { extern grpc_address_resolver_vtable* grpc_resolve_address_impl; static grpc_address_resolver_vtable* default_resolver; -static void resolve_address_ares(const char* addr, const char* default_port, - grpc_pollset_set* interested_parties, - grpc_closure* on_done, - grpc_resolved_addresses** addrs) { - grpc_resolve_address_ares(addr, default_port, interested_parties, on_done, - addrs); -} - static grpc_error* blocking_resolve_address_ares( const char* name, const char* default_port, grpc_resolved_addresses** addresses) { @@ -459,7 +451,7 @@ static grpc_error* blocking_resolve_address_ares( } static grpc_address_resolver_vtable ares_resolver = { - resolve_address_ares, blocking_resolve_address_ares}; + grpc_resolve_address_ares, blocking_resolve_address_ares}; void grpc_resolver_dns_ares_init() { char* resolver_env = gpr_getenv("GRPC_DNS_RESOLVER"); -- cgit v1.2.3