lib: delete unused local includes

Filtered from `clang-tidy` `misc-include-cleaner` hits.

Also:
- pingping: scope includes.
- doh: say the reason for an include.

Closes #20607
This commit is contained in:
Viktor Szakats 2026-02-16 16:50:52 +01:00
parent daa6b27b4d
commit 8fb87f5a4a
No known key found for this signature in database
15 changed files with 5 additions and 22 deletions

View File

@ -31,7 +31,6 @@
#include "http.h"
#include "http1.h"
#include "http_proxy.h"
#include "url.h"
#include "select.h"
#include "progress.h"
#include "cfilters.h"
@ -39,7 +38,6 @@
#include "connect.h"
#include "curl_trc.h"
#include "strcase.h"
#include "transfer.h"
#include "curlx/strparse.h"

View File

@ -55,7 +55,6 @@
#endif
#include "urldata.h"
#include "bufq.h"
#include "curl_trc.h"
#include "if2ip.h"
#include "cfilters.h"

View File

@ -34,9 +34,6 @@
#include "conncache.h"
#include "curl_share.h"
#include "sigpipe.h"
#include "connect.h"
#include "select.h"
#include "curlx/strparse.h"
#define CPOOL_IS_LOCKED(c) ((c) && (c)->locked)

View File

@ -38,7 +38,6 @@
#include "parsedate.h"
#include "curlx/strdup.h"
#include "llist.h"
#include "bufref.h"
#include "curlx/strparse.h"
/* number of seconds in 400 days */

View File

@ -24,7 +24,6 @@
#include "curl_setup.h"
#include "urldata.h"
#include "connect.h"
#include "curl_share.h"
#include "vtls/vtls.h"
#include "vtls/vtls_scache.h"

View File

@ -35,7 +35,7 @@
#include "connect.h"
#include "curlx/strdup.h"
#include "curlx/dynbuf.h"
#include "escape.h"
#include "escape.h" /* for Curl_hexencode() */
#include "urlapi-int.h"
#define DNS_CLASS_IN 0x01

View File

@ -49,7 +49,6 @@
#include "transfer.h"
#include "escape.h"
#include "ftp.h"
#include "fileinfo.h"
#include "ftplistparser.h"
#include "curl_range.h"
#include "strcase.h"

View File

@ -34,7 +34,6 @@
#include "cf-h1-proxy.h"
#include "cf-h2-proxy.h"
#include "connect.h"
#include "transfer.h"
#include "vauth/vauth.h"
#include "curlx/strparse.h"

View File

@ -27,6 +27,10 @@
#include "curl_setup.h"
#include "urldata.h"
#include "pingpong.h"
#ifdef USE_PINGPONG
#include "cfilters.h"
#include "connect.h"
#include "multiif.h"
@ -34,9 +38,6 @@
#include "curl_trc.h"
#include "select.h"
#include "progress.h"
#include "pingpong.h"
#ifdef USE_PINGPONG
/* Returns timeout in ms. 0 or negative number means the timeout has already
triggered */

View File

@ -24,8 +24,6 @@
#include "curl_setup.h"
#include "urldata.h"
#include "curl_trc.h"
#include "progress.h"
#include "ratelimit.h"
#define CURL_US_PER_SEC 1000000

View File

@ -42,7 +42,6 @@
#include "cw-out.h"
#include "cw-pause.h"
#include "multiif.h"
#include "strerror.h"
#include "progress.h"
static void cl_reset_writer(struct Curl_easy *data)

View File

@ -41,7 +41,6 @@
#include "connect.h"
#include "socks.h"
#include "curlx/inet_pton.h"
#include "url.h"
/* for the (SOCKS) connect state machine */
enum socks_state_t {

View File

@ -51,7 +51,6 @@
#include "transfer.h"
#include "sendf.h"
#include "curl_trc.h"
#include "connect.h"
#include "progress.h"
#include "arpa_telnet.h"
#include "select.h"

View File

@ -68,7 +68,6 @@
#include "getinfo.h"
#include "multiif.h"
#include "connect.h"
#include "mime.h"
#include "hsts.h"
#include "setopt.h"
#include "headers.h"

View File

@ -65,9 +65,7 @@
#include <iphlpapi.h>
#endif
#include "doh.h"
#include "urldata.h"
#include "formdata.h"
#include "mime.h"
#include "bufref.h"
#include "vtls/vtls.h"