From: Volker Lendecke Date: Fri, 17 Jul 2020 10:56:43 +0000 (+0200) Subject: lib: Remove unused client_socket_port() X-Git-Tag: talloc-2.3.2~859 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3c43c6595042beeb5aec36bcb13f9df1cbfc6d3;p=thirdparty%2Fsamba.git lib: Remove unused client_socket_port() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/include/proto.h b/source3/include/proto.h index 1027d4e091a..ff58bc7e52e 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -520,7 +520,6 @@ char *print_sockaddr(char *dest, char *print_canonical_sockaddr(TALLOC_CTX *ctx, const struct sockaddr_storage *pss); int get_socket_port(int fd); -int client_socket_port(int fd); bool is_a_socket(int fd); void set_socket_options(int fd, const char *options); NTSTATUS read_fd_with_timeout(int fd, char *buf, diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index 55170e94f68..142946e9f5d 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -31,14 +31,6 @@ #include "lib/util/sys_rw.h" #include "lib/util/sys_rw_data.h" -#if 0 -/* Not currently used. JRA. */ -int client_socket_port(int fd) -{ - return get_socket_port(fd); -} -#endif - /**************************************************************************** Determine if a file descriptor is in fact a socket. ****************************************************************************/