Remove unused definition of ResolvedAddrToUnixPathIfPossible

ResolvedAddrToUnixPathIfPossible is only called when
GRPC_HAVE_UNIX_SOCKET is defined, so there's no need to define
that function when it isn't.
pull/38016/head
Henrique Ferreiro 4 weeks ago
parent 2329b25b09
commit 3d00260104
  1. 6
      src/core/lib/event_engine/tcp_socket_utils.cc

@ -141,12 +141,6 @@ absl::StatusOr<std::string> ResolvedAddrToUriUnixIfPossible(
return uri->ToString();
}
#else
absl::StatusOr<std::string> ResolvedAddrToUnixPathIfPossible(
const EventEngine::ResolvedAddress* /*resolved_addr*/) {
return absl::InvalidArgumentError("Unix socket is not supported.");
}
absl::StatusOr<std::string> ResolvedAddrToUriUnixIfPossible(
const EventEngine::ResolvedAddress* /*resolved_addr*/) {
return absl::InvalidArgumentError("Unix socket is not supported.");

Loading…
Cancel
Save