From e0e56e9ae434552bd6ac5570ed91483188d75788 Mon Sep 17 00:00:00 2001 From: amitbidlan Date: Mon, 11 May 2026 22:39:53 +0900 Subject: [PATCH] hostip: remove unused MAX_HOSTCACHE_LEN and MAX_DNS_CACHE_SIZE These macros are leftovers from when DNS caching was moved out of hostip.c into its own source file. Both are still defined and used in lib/dnscache.c; the copies in lib/hostip.c are unreferenced. Detected with clang -Wunused-macros. Follow-up to 96d5b5c688 Closes #21550 --- lib/hostip.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/hostip.c b/lib/hostip.c index 9fd7c75a73..e18c862984 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -70,10 +70,6 @@ #define USE_ALARM_TIMEOUT #endif -#define MAX_HOSTCACHE_LEN (255 + 7) /* max FQDN + colon + port number + zero */ - -#define MAX_DNS_CACHE_SIZE 29999 - #define RESOLV_FAIL(for_proxy) \ ((for_proxy) ? CURLE_COULDNT_RESOLVE_PROXY : CURLE_COULDNT_RESOLVE_HOST)