mirror of
https://github.com/curl/curl.git
synced 2026-01-18 17:21:26 +01:00
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:
@@ -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
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
* SPDX-License-Identifier: curl
|
||||
*
|
||||
***************************************************************************/
|
||||
#include "curlx/timeval.h"
|
||||
|
||||
struct connectdata;
|
||||
struct Curl_easy;
|
||||
struct curl_pollfds;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -84,7 +84,6 @@
|
||||
#include "ws.h"
|
||||
#include "bufref.h"
|
||||
#include "curlx/strparse.h"
|
||||
#include "curlx/timeval.h"
|
||||
|
||||
/*
|
||||
* Forward declarations.
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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. */
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
#include "cfilters.h"
|
||||
#include "connect.h"
|
||||
#include "curlx/nonblock.h"
|
||||
#include "curlx/timeval.h"
|
||||
#include "socks.h"
|
||||
#include "strdup.h"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
***************************************************************************/
|
||||
#include "curl_setup.h"
|
||||
|
||||
#include "curlx/timeval.h"
|
||||
#include "splay.h"
|
||||
|
||||
/*
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user