Remove unused definition of ResolvedAddrToUnixPathIfPossible (#38016)

ResolvedAddrToUnixPathIfPossible is only called when GRPC_HAVE_UNIX_SOCKET is defined, so there's no need to define that function when it isn't.

Closes #38016

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/38016 from hferreiro:master 3d00260104
PiperOrigin-RevId: 693833757
pull/37782/merge
Henrique Ferreiro 3 weeks ago committed by Copybara-Service
parent 6a0c483bea
commit 9765f16097
  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