From: Viktor Szakats Date: Sat, 20 Dec 2025 18:21:19 +0000 (+0100) Subject: socks.h: delete obsolete, unused, macros X-Git-Url: https://git.feebdaed.xyz/?a=commitdiff_plain;h=df4edd28f2e2d31f562372fc697c904b7d15d8ea;p=0xmirror%2Fcurl.git socks.h: delete obsolete, unused, macros Unused since dafdb20a26d0c890e83dea61a104b75408481ebd #9855 Cherry-picked from #20051 Closes #20053 --- diff --git a/lib/socks.h b/lib/socks.h index eb9088f530..7c43e92e7e 100644 --- a/lib/socks.h +++ b/lib/socks.h @@ -26,11 +26,7 @@ #include "curl_setup.h" -#ifdef CURL_DISABLE_PROXY -#define Curl_SOCKS4(a, b, c, d, e) CURLE_NOT_BUILT_IN -#define Curl_SOCKS5(a, b, c, d, e, f) CURLE_NOT_BUILT_IN -#define Curl_SOCKS_getsock(x, y, z) 0 -#else +#ifndef CURL_DISABLE_PROXY /* * Helper read-from-socket functions. Does the same as Curl_read() but it * blocks until all bytes amount of buffersize will be read. No more, no less. @@ -56,6 +52,6 @@ CURLcode Curl_cf_socks_proxy_insert_after(struct Curl_cfilter *cf_at, extern struct Curl_cftype Curl_cft_socks_proxy; -#endif /* CURL_DISABLE_PROXY */ +#endif /* !CURL_DISABLE_PROXY */ #endif /* HEADER_CURL_SOCKS_H */