diff --git a/be/src/util/brpc_client_cache.h b/be/src/util/brpc_client_cache.h index ee4b23d36574be..9d250a0018b320 100644 --- a/be/src/util/brpc_client_cache.h +++ b/be/src/util/brpc_client_cache.h @@ -119,10 +119,6 @@ class BrpcClientCache { std::string connection_group = ""); virtual ~BrpcClientCache(); - std::shared_ptr get_client(const butil::EndPoint& endpoint) { - return get_client(butil::endpoint2str(endpoint).c_str()); - } - #ifdef BE_TEST virtual std::shared_ptr get_client(const TNetworkAddress& taddr) { std::string host_port = fmt::format("{}:{}", taddr.hostname, taddr.port); @@ -237,10 +233,6 @@ class BrpcClientCache { return erase(host_port); } - size_t erase(const butil::EndPoint& endpoint) { - return _stub_map.erase(butil::endpoint2str(endpoint).c_str()); - } - bool exist(const std::string& host_port) { return _stub_map.find(host_port) != _stub_map.end(); } @@ -251,10 +243,6 @@ class BrpcClientCache { } } - bool available(std::shared_ptr stub, const butil::EndPoint& endpoint) { - return available(stub, butil::endpoint2str(endpoint).c_str()); - } - bool available(std::shared_ptr stub, const std::string& host_port) { if (!stub) { LOG(WARNING) << "stub is null to: " << host_port;