From 9765f16097ccf4d478708ca5fe5f9e83a330c1f5 Mon Sep 17 00:00:00 2001 From: Henrique Ferreiro Date: Wed, 6 Nov 2024 13:01:27 -0800 Subject: [PATCH] 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 3d002601041a0307fd291c49ebec86f2188f4745 PiperOrigin-RevId: 693833757 --- src/core/lib/event_engine/tcp_socket_utils.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/core/lib/event_engine/tcp_socket_utils.cc b/src/core/lib/event_engine/tcp_socket_utils.cc index d4ef7a8bb48..8ea244a8ff4 100644 --- a/src/core/lib/event_engine/tcp_socket_utils.cc +++ b/src/core/lib/event_engine/tcp_socket_utils.cc @@ -141,12 +141,6 @@ absl::StatusOr ResolvedAddrToUriUnixIfPossible( return uri->ToString(); } #else - -absl::StatusOr ResolvedAddrToUnixPathIfPossible( - const EventEngine::ResolvedAddress* /*resolved_addr*/) { - return absl::InvalidArgumentError("Unix socket is not supported."); -} - absl::StatusOr ResolvedAddrToUriUnixIfPossible( const EventEngine::ResolvedAddress* /*resolved_addr*/) { return absl::InvalidArgumentError("Unix socket is not supported.");