lib: drop includes unused or duplicate

Closes #20051
This commit is contained in:
Viktor Szakats 2025-12-20 17:16:10 +01:00
parent df4edd28f2
commit a354cc8664
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201
52 changed files with 15 additions and 81 deletions

View File

@ -35,7 +35,6 @@
#include "parsedate.h"
#include "sendf.h"
#include "curlx/warnless.h"
#include "strdup.h"
#include "curlx/inet_pton.h"
#include "curlx/strparse.h"
#include "curlx/timeval.h"

View File

@ -50,7 +50,6 @@
#include "cfilters.h"
#include "sendf.h"
#include "hostip.h"
#include "hash.h"
#include "url.h"
#include "multiif.h"
#include "curlx/inet_pton.h"

View File

@ -48,7 +48,6 @@
#include "asyn.h"
#include "sendf.h"
#include "hostip.h"
#include "hash.h"
#include "multiif.h"
#include "select.h"
#include "url.h"

View File

@ -58,7 +58,6 @@
#include "cfilters.h"
#include "sendf.h"
#include "hostip.h"
#include "hash.h"
#include "url.h"
#include "multiif.h"
#include "curl_threads.h"

View File

@ -26,7 +26,6 @@
#include "curl_setup.h"
#include "curlx/nonblock.h" /* for curlx_nonblock() */
#include "sockaddr.h"
/**
* Create a cfilter for making an "ip" connection to the

View File

@ -63,9 +63,7 @@
#include "cf-socket.h"
#include "connect.h"
#include "select.h"
#include "url.h" /* for Curl_safefree() */
#include "multiif.h"
#include "sockaddr.h" /* required for Curl_sockaddr_storage */
#include "curlx/inet_pton.h"
#include "progress.h"
#include "curlx/warnless.h"

View File

@ -26,7 +26,7 @@
#include "curl_setup.h"
#include "curlx/nonblock.h" /* for curlx_nonblock() */
#include "sockaddr.h"
#include "sockaddr.h" /* required for Curl_sockaddr_storage */
struct Curl_addrinfo;
struct Curl_cfilter;

View File

@ -30,7 +30,6 @@
#include "connect.h"
#include "url.h"
#include "sendf.h"
#include "sockaddr.h" /* required for Curl_sockaddr_storage */
#include "progress.h"
#include "select.h"
#include "curlx/warnless.h"

View File

@ -33,14 +33,11 @@
#include "sendf.h"
#include "cshutdn.h"
#include "conncache.h"
#include "http_negotiate.h"
#include "http_ntlm.h"
#include "curl_share.h"
#include "sigpipe.h"
#include "connect.h"
#include "select.h"
#include "curlx/strparse.h"
#include "uint-table.h"
#define CPOOL_IS_LOCKED(c) ((c) && (c)->locked)

View File

@ -52,7 +52,6 @@
#include "urldata.h"
#include "sendf.h"
#include "if2ip.h"
#include "strerror.h"
#include "cfilters.h"
#include "connect.h"
@ -60,10 +59,7 @@
#include "cf-https-connect.h"
#include "cf-ip-happy.h"
#include "cf-socket.h"
#include "select.h"
#include "url.h" /* for Curl_safefree() */
#include "multiif.h"
#include "sockaddr.h" /* required for Curl_sockaddr_storage */
#include "curlx/inet_ntop.h"
#include "curlx/strparse.h"
#include "vtls/vtls.h" /* for vtsl cfilters */

View File

@ -26,7 +26,6 @@
#include "curl_setup.h"
#include "curlx/nonblock.h" /* for curlx_nonblock() */
#include "sockaddr.h"
#include "curlx/timeval.h"
struct Curl_dns_entry;

View File

@ -33,8 +33,6 @@
#include "multi_ev.h"
#include "sendf.h"
#include "cshutdn.h"
#include "http_negotiate.h"
#include "http_ntlm.h"
#include "sigpipe.h"
#include "connect.h"
#include "select.h"

View File

@ -44,7 +44,6 @@
#include "vauth/vauth.h"
#include "cfilters.h"
#include "vtls/vtls.h"
#include "curl_hmac.h"
#include "curl_sasl.h"
#include "curlx/warnless.h"
#include "sendf.h"

View File

@ -27,7 +27,6 @@
#include "urldata.h"
#include "connect.h"
#include "curl_share.h"
#include "psl.h"
#include "vtls/vtls.h"
#include "vtls/vtls_scache.h"
#include "hsts.h"

View File

@ -29,7 +29,6 @@
#include "curl_sspi.h"
#include "strdup.h"
#include "curlx/multibyte.h"
#include "system_win32.h"
#include "curlx/warnless.h"
/* Pointer to SSPI dispatch table */

View File

@ -19,7 +19,7 @@
*/
#include "../curl_setup.h"
#include "../curl_ctype.h"
#include "strparse.h"
#ifndef HAVE_INET_PTON

View File

@ -26,7 +26,6 @@
#include "urldata.h"
#include "cfilters.h"
#include "headers.h"
#include "multiif.h"
#include "sendf.h"
#include "transfer.h"

View File

@ -27,7 +27,6 @@
#include "urldata.h"
#include "bufq.h"
#include "cfilters.h"
#include "headers.h"
#include "sendf.h"
#include "cw-pause.h"

View File

@ -26,8 +26,6 @@
/* Escape and unescape URL encoding in strings. The functions return a new
* allocated string or NULL if an error occurred. */
#include "curl_ctype.h"
enum urlreject {
REJECT_NADA = 2,
REJECT_CTRL,

View File

@ -66,7 +66,6 @@
#include "url.h"
#include "curlx/warnless.h"
#include "http_proxy.h"
#include "socks.h"
#include "strdup.h"
#include "curlx/strerr.h"
#include "curlx/strparse.h"

View File

@ -25,7 +25,6 @@
#include "curl_setup.h"
#include "urldata.h"
#include "strdup.h"
#include "sendf.h"
#include "headers.h"
#include "curlx/strparse.h"

View File

@ -46,7 +46,6 @@
#include "urldata.h"
#include "sendf.h"
#include "hostip.h"
#include "hash.h"
#include "url.h"

View File

@ -47,7 +47,6 @@
#include "cfilters.h"
#include "sendf.h"
#include "hostip.h"
#include "hash.h"
#include "url.h"
#include "curlx/inet_pton.h"
#include "connect.h"

View File

@ -36,7 +36,6 @@
#include "sendf.h"
#include "parsedate.h"
#include "curl_share.h"
#include "strdup.h"
#include "curlx/strparse.h"
#include "curlx/timeval.h"

View File

@ -84,7 +84,6 @@
#include "hsts.h"
#include "ws.h"
#include "bufref.h"
#include "curl_ctype.h"
#include "curlx/strparse.h"
#include "curlx/timeval.h"

View File

@ -27,7 +27,6 @@
#include "bufq.h"
#include "dynhds.h"
#include "ws.h"
typedef enum {
HTTPREQ_GET,

View File

@ -30,7 +30,6 @@
#include "curl_trc.h"
#include "sendf.h" /* for the client write stuff */
#include "curlx/dynbuf.h"
#include "content_encoding.h"
#include "http.h"
#include "multiif.h"
#include "curlx/strparse.h"

View File

@ -31,7 +31,6 @@
#include "sendf.h"
#include "http.h"
#include "url.h"
#include "select.h"
#include "cfilters.h"
#include "cf-h1-proxy.h"
#include "cf-h2-proxy.h"

View File

@ -27,7 +27,6 @@
#ifdef USE_HTTPSRR
#include "urldata.h"
#include "curl_addrinfo.h"
#include "httpsrr.h"
#include "connect.h"
#include "sendf.h"

View File

@ -61,7 +61,6 @@
#include "transfer.h"
#include "escape.h"
#include "http.h" /* for HTTP proxy tunnel stuff */
#include "socks.h"
#include "imap.h"
#include "mime.h"
#include "curlx/strparse.h"
@ -74,7 +73,6 @@
#include "bufref.h"
#include "curl_sasl.h"
#include "curlx/warnless.h"
#include "curl_ctype.h"
/* meta key for storing protocol meta at easy handle */

View File

@ -48,8 +48,6 @@
#include "http_proxy.h"
#include "http2.h"
#include "socketpair.h"
#include "socks.h"
#include "urlapi-int.h"
#include "bufref.h"
/* initial multi->xfers table size for a full multi */

View File

@ -34,10 +34,8 @@
#include "select.h"
#include "uint-bset.h"
#include "uint-spbset.h"
#include "uint-table.h"
#include "curlx/warnless.h"
#include "multihandle.h"
#include "socks.h"
static void mev_in_callback(struct Curl_multi *multi, bool value)

View File

@ -62,7 +62,6 @@
#include "transfer.h"
#include "escape.h"
#include "http.h" /* for HTTP proxy tunnel stuff */
#include "socks.h"
#include "pingpong.h"
#include "pop3.h"
#include "vtls/vtls.h"

View File

@ -39,18 +39,15 @@
#include "transfer.h"
#include "cfilters.h"
#include "connect.h"
#include "content_encoding.h"
#include "cw-out.h"
#include "cw-pause.h"
#include "vtls/vtls.h"
#include "vssh/ssh.h"
#include "multiif.h"
#include "strerror.h"
#include "select.h"
#include "http2.h"
#include "progress.h"
#include "curlx/warnless.h"
#include "ws.h"
static CURLcode do_init_writer_stack(struct Curl_easy *data);

View File

@ -30,7 +30,6 @@
#include "curlx/warnless.h"
#include "curl_sha256.h"
#include "curl_hmac.h"
#ifdef USE_MBEDTLS
#include <mbedtls/version.h>

View File

@ -65,7 +65,6 @@
#include "escape.h"
#include "http.h" /* for HTTP proxy tunnel stuff */
#include "mime.h"
#include "socks.h"
#include "smtp.h"
#include "vtls/vtls.h"
#include "cfilters.h"

View File

@ -53,7 +53,6 @@
#include "telnet.h"
#include "connect.h"
#include "progress.h"
#include "system_win32.h"
#include "arpa_telnet.h"
#include "select.h"
#include "curlx/warnless.h"

View File

@ -57,8 +57,6 @@
#include "urldata.h"
#include "netrc.h"
#include "content_encoding.h"
#include "hostip.h"
#include "cfilters.h"
#include "cw-out.h"
@ -70,7 +68,6 @@
#include "getinfo.h"
#include "vtls/vtls.h"
#include "vquic/vquic.h"
#include "select.h"
#include "multiif.h"
#include "connect.h"
#include "http2.h"

View File

@ -68,7 +68,6 @@
#include "doh.h"
#include "urldata.h"
#include "netrc.h"
#include "formdata.h"
#include "mime.h"
#include "bufref.h"
@ -81,10 +80,7 @@
#include "strcase.h"
#include "escape.h"
#include "curl_share.h"
#include "content_encoding.h"
#include "http_digest.h"
#include "http_negotiate.h"
#include "select.h"
#include "multiif.h"
#include "curlx/warnless.h"
#include "getinfo.h"
@ -95,6 +91,16 @@
#include "noproxy.h"
#include "cfilters.h"
#include "idn.h"
#include "http_proxy.h"
#include "conncache.h"
#include "multihandle.h"
#include "strdup.h"
#include "setopt.h"
#include "altsvc.h"
#include "curlx/dynbuf.h"
#include "headers.h"
#include "curlx/strerr.h"
#include "curlx/strparse.h"
/* And now for the protocols */
#include "ftp.h"
@ -109,20 +115,10 @@
#include "imap.h"
#include "url.h"
#include "connect.h"
#include "http_ntlm.h"
#include "curl_rtmp.h"
#include "gopher.h"
#include "mqtt.h"
#include "http_proxy.h"
#include "conncache.h"
#include "multihandle.h"
#include "strdup.h"
#include "setopt.h"
#include "altsvc.h"
#include "curlx/dynbuf.h"
#include "headers.h"
#include "curlx/strerr.h"
#include "curlx/strparse.h"
#include "ws.h"
#ifdef USE_NGHTTP2
static void data_priority_cleanup(struct Curl_easy *data);

View File

@ -29,7 +29,6 @@
#include "strcase.h"
#include "url.h"
#include "escape.h"
#include "curl_ctype.h"
#include "curlx/inet_pton.h"
#include "curlx/inet_ntop.h"
#include "strdup.h"

View File

@ -32,7 +32,6 @@
#include "vauth.h"
#include "digest.h"
#include "../curlx/base64.h"
#include "../curl_hmac.h"
#include "../curl_md5.h"
#include "../curl_sha256.h"
#include "../curl_sha512_256.h"

View File

@ -38,7 +38,6 @@
#include "vauth.h"
#include "../sendf.h"
#include "../curl_ntlm_core.h"
#include "../curl_gethostname.h"
#include "../curlx/warnless.h"
#include "../rand.h"
#include "../vtls/vtls.h"

View File

@ -25,7 +25,6 @@
#include "../curl_setup.h"
#include "vauth.h"
#include "../strdup.h"
#include "../curlx/multibyte.h"
#include "../url.h"

View File

@ -33,7 +33,6 @@
#include <nghttp3/nghttp3.h>
#include "../urldata.h"
#include "../hash.h"
#include "../sendf.h"
#include "../multiif.h"
#include "../cfilters.h"

View File

@ -55,7 +55,6 @@
#include "../cfilters.h"
#include "../connect.h"
#include "../parsedate.h" /* for the week day and month names */
#include "../sockaddr.h" /* required for Curl_sockaddr_storage */
#include "../curlx/strparse.h"
#include "../multiif.h"
#include "../select.h"

View File

@ -54,7 +54,6 @@
#include "../cfilters.h"
#include "../connect.h"
#include "../parsedate.h" /* for the week day and month names */
#include "../sockaddr.h" /* required for Curl_sockaddr_storage */
#include "../multiif.h"
#include "../select.h"
#include "../curlx/fopen.h"

View File

@ -52,7 +52,6 @@
#include "../parsedate.h"
#include "../connect.h" /* for the connect timeout */
#include "../progress.h"
#include "../select.h"
#include "../strdup.h"
#include "../curlx/fopen.h"
#include "../curlx/timeval.h"

View File

@ -67,8 +67,6 @@
#include "vtls_scache.h"
#include "x509asn1.h"
#include "../connect.h" /* for the connect timeout */
#include "../select.h"
#include "../multiif.h"
#include "../strdup.h"
#include "../curl_sha256.h"

View File

@ -51,7 +51,6 @@
#include "openssl.h"
#include "../connect.h"
#include "../progress.h"
#include "../select.h"
#include "vtls.h"
#include "vtls_int.h"
#include "vtls_scache.h"

View File

@ -24,7 +24,9 @@
*
***************************************************************************/
#include "../curl_setup.h"
#include "../cfilters.h"
#include "../select.h"
#include "../urldata.h"
#include "vtls.h"

View File

@ -61,7 +61,6 @@
#include "keylog.h"
#include "../connect.h" /* for the connect timeout */
#include "../progress.h"
#include "../select.h"
#include "../strdup.h"
#include "x509asn1.h"

View File

@ -38,7 +38,6 @@
#endif
#include "../urldata.h"
#include "../curl_ctype.h"
#include "hostcheck.h"
#include "vtls.h"
#include "vtls_int.h"