diff options
author | Dr. David Alan Gilbert <dave@treblig.org> | 2024-09-19 00:26:33 +0100 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2024-10-22 11:44:23 +0100 |
commit | a3472075147162c935d841b8f0571e5616947d6a (patch) | |
tree | 9fbe3c952a2fdda02ac71ef08db97ed1ae588c06 /include/qemu | |
parent | 04eeeec69771958bc28564a05a40919e201ba862 (diff) | |
download | qemu-a3472075147162c935d841b8f0571e5616947d6a.zip qemu-a3472075147162c935d841b8f0571e5616947d6a.tar.gz qemu-a3472075147162c935d841b8f0571e5616947d6a.tar.bz2 |
sockets: Remove deadcode
socket_remote_address hasn't been used since it was added in
17c55decec ("sockets: add helpers for creating SocketAddress from a socket")
inet_connect hasn't been used since 2017's
8ecc2f9eab ("sheepdog: Use SocketAddress and socket_connect()")
Remove them.
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'include/qemu')
-rw-r--r-- | include/qemu/sockets.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/include/qemu/sockets.h b/include/qemu/sockets.h index d935fd8..c562690 100644 --- a/include/qemu/sockets.h +++ b/include/qemu/sockets.h @@ -61,7 +61,6 @@ int socket_set_fast_reuse(int fd); int inet_ai_family_from_address(InetSocketAddress *addr, Error **errp); int inet_parse(InetSocketAddress *addr, const char *str, Error **errp); -int inet_connect(const char *str, Error **errp); int inet_connect_saddr(InetSocketAddress *saddr, Error **errp); NetworkAddressFamily inet_netfamily(int family); @@ -118,21 +117,6 @@ socket_sockaddr_to_address(struct sockaddr_storage *sa, SocketAddress *socket_local_address(int fd, Error **errp); /** - * socket_remote_address: - * @fd: the socket file handle - * @errp: pointer to uninitialized error object - * - * Get the string representation of the remote socket - * address. A pointer to the allocated address information - * struct will be returned, which the caller is required to - * release with a call qapi_free_SocketAddress() when no - * longer required. - * - * Returns: the socket address struct, or NULL on error - */ -SocketAddress *socket_remote_address(int fd, Error **errp); - -/** * socket_address_flatten: * @addr: the socket address to flatten * |