lib: drop unused or duplicate curlx/timeval.h includes

Note: This patch doesn't aim to add `timeval.h` includes missing from
local headers using `curltime` type. They remain relying on `urldata.h`
being included first. This patch also doesn't delete existing, used
includes already present in local headers (as internal users may rely
on them).

Ref: #20106
Closes #20126
This commit is contained in:
Viktor Szakats
2025-12-31 12:28:46 +01:00
parent def95e3bbc
commit c7b25e6e82
20 changed files with 1 additions and 22 deletions

View File

@@ -36,7 +36,6 @@
#include "curl_trc.h"
#include "curlx/inet_pton.h"
#include "curlx/strparse.h"
#include "curlx/timeval.h"
#include "connect.h"
#define MAX_ALTSVC_LINE 4095

View File

@@ -24,8 +24,6 @@
* SPDX-License-Identifier: curl
*
***************************************************************************/
#include "curlx/timeval.h"
struct connectdata;
struct Curl_easy;
struct curl_pollfds;

View File

@@ -64,7 +64,6 @@
#include "url.h"
#include "parsedate.h" /* for the week day and month names */
#include "curlx/fopen.h"
#include "curlx/timeval.h"
#include "curl_range.h"
#if defined(_WIN32) || defined(MSDOS)

View File

@@ -67,7 +67,6 @@
#include "strdup.h"
#include "curlx/strerr.h"
#include "curlx/strparse.h"
#include "curlx/timeval.h"
#ifndef NI_MAXHOST
#define NI_MAXHOST 1025

View File

@@ -27,7 +27,7 @@
#include "hash.h"
#include "curl_addrinfo.h"
#include "curlx/timeval.h" /* for timediff_t */
#include "curlx/timeval.h" /* for curltime, timediff_t */
#include "asyn.h"
#include "httpsrr.h"

View File

@@ -36,7 +36,6 @@
#include "parsedate.h"
#include "curl_share.h"
#include "curlx/strparse.h"
#include "curlx/timeval.h"
#include "curlx/strcopy.h"
#define MAX_HSTS_LINE 4095

View File

@@ -84,7 +84,6 @@
#include "ws.h"
#include "bufref.h"
#include "curlx/strparse.h"
#include "curlx/timeval.h"
/*
* Forward declarations.

View File

@@ -34,7 +34,6 @@
#include "curl_trc.h"
#include "escape.h"
#include "curlx/strparse.h"
#include "curlx/timeval.h"
#include "slist.h"
#include <time.h>

View File

@@ -35,7 +35,6 @@
#include "multi_ev.h"
#include "sendf.h"
#include "curl_trc.h"
#include "curlx/timeval.h"
#include "http.h"
#include "select.h"
#include "curlx/wait.h"

View File

@@ -28,7 +28,6 @@
#include "cfilters.h"
#include "curl_trc.h"
#include "multiif.h"
#include "curlx/timeval.h"
#include "multi_ev.h"
#include "select.h"
#include "uint-bset.h"

View File

@@ -28,7 +28,6 @@
#include "multiif.h"
#include "progress.h"
#include "transfer.h"
#include "curlx/timeval.h"
#include "curlx/strcopy.h"
/* check rate limits within this many recent milliseconds, at minimum. */

View File

@@ -30,7 +30,6 @@
#include "urldata.h"
#include "vtls/vtls.h"
#include "curl_trc.h"
#include "curlx/timeval.h"
#include "rand.h"
#include "escape.h"

View File

@@ -23,10 +23,8 @@
***************************************************************************/
#include "curl_setup.h"
#include "curlx/timeval.h"
#include "ratelimit.h"
#define CURL_US_PER_SEC 1000000
#define CURL_RLIMIT_MIN_CHUNK (16 * 1024)
#define CURL_RLIMIT_MAX_STEPS 2 /* 500ms interval */

View File

@@ -123,7 +123,6 @@ int Curl_socketpair(int domain, int type, int protocol,
#define INADDR_LOOPBACK 0x7f000001
#endif
#include "curlx/timeval.h" /* needed before select.h */
#include "select.h" /* for Curl_poll */
int Curl_socketpair(int domain, int type, int protocol,

View File

@@ -38,7 +38,6 @@
#include "select.h"
#include "cfilters.h"
#include "connect.h"
#include "curlx/timeval.h"
#include "socks.h"
#include "curlx/inet_pton.h"
#include "url.h"

View File

@@ -32,7 +32,6 @@
#include "cfilters.h"
#include "connect.h"
#include "curlx/nonblock.h"
#include "curlx/timeval.h"
#include "socks.h"
#include "strdup.h"

View File

@@ -32,7 +32,6 @@
#include "connect.h"
#include "strerror.h"
#include "curlx/nonblock.h"
#include "curlx/timeval.h"
#include "socks.h"
#include "curl_sspi.h"
#include "curlx/multibyte.h"

View File

@@ -23,7 +23,6 @@
***************************************************************************/
#include "curl_setup.h"
#include "curlx/timeval.h"
#include "splay.h"
/*

View File

@@ -52,7 +52,6 @@
#include "../progress.h"
#include "../strdup.h"
#include "../curlx/fopen.h"
#include "../curlx/timeval.h"
#include "x509asn1.h"
/* Enable GnuTLS debugging by defining GTLSDEBUG */

View File

@@ -64,7 +64,6 @@
#include "../url.h"
#include "../progress.h"
#include "../curlx/fopen.h"
#include "../curlx/timeval.h"
#include "../curl_sha256.h"
#include "../curlx/base64.h"
#include "../curlx/inet_pton.h"