From 608c7390d1dec0d5dbb0b9692f5ec58c60091a33 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 25 Jun 2025 10:10:53 +0200 Subject: [PATCH] lib: Remove unused interpret_string_addr_prefer_ipv4() Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- lib/util/util_net.c | 15 --------------- lib/util/util_net.h | 9 --------- 2 files changed, 24 deletions(-) diff --git a/lib/util/util_net.c b/lib/util/util_net.c index ffc7e4021fd..e410cdf915a 100644 --- a/lib/util/util_net.c +++ b/lib/util/util_net.c @@ -326,21 +326,6 @@ bool interpret_string_addr(struct sockaddr_storage *pss, false); } -/******************************************************************* - Map a text hostname or IP address (IPv4 or IPv6) into a - struct sockaddr_storage. Version that prefers IPv4. -******************************************************************/ - -bool interpret_string_addr_prefer_ipv4(struct sockaddr_storage *pss, - const char *str, - int flags) -{ - return interpret_string_addr_pref(pss, - str, - flags, - true); -} - /** * Interpret an internet address or name into an IP address in 4 byte form. * RETURNS IN NETWORK BYTE ORDER (big endian). diff --git a/lib/util/util_net.h b/lib/util/util_net.h index adfe749d4b7..d8eac33f629 100644 --- a/lib/util/util_net.h +++ b/lib/util/util_net.h @@ -47,15 +47,6 @@ bool interpret_string_addr(struct sockaddr_storage *pss, const char *str, int flags); -/******************************************************************* - Map a text hostname or IP address (IPv4 or IPv6) into a - struct sockaddr_storage. Version that prefers IPv4. -******************************************************************/ - -bool interpret_string_addr_prefer_ipv4(struct sockaddr_storage *pss, - const char *str, - int flags); - void set_sockaddr_port(struct sockaddr *psa, uint16_t port); /** -- 2.47.3