mirror of
https://github.com/transmission/transmission
synced 2025-03-12 23:23:54 +00:00
build: remove the test to see if curl is at least 7.15.6 (#7462)
CMakeLists.txt requires curl >= 7.28.0, so we do not need to test this.
This commit is contained in:
parent
ea2cac2335
commit
c398bd26f3
1 changed files with 0 additions and 9 deletions
|
@ -49,10 +49,6 @@
|
|||
|
||||
using namespace std::literals;
|
||||
|
||||
#if LIBCURL_VERSION_NUM >= 0x070F06 // CURLOPT_SOCKOPT* was added in 7.15.6
|
||||
#define USE_LIBCURL_SOCKOPT
|
||||
#endif
|
||||
|
||||
// ---
|
||||
|
||||
namespace
|
||||
|
@ -526,7 +522,6 @@ public:
|
|||
return bytes_used;
|
||||
}
|
||||
|
||||
#ifdef USE_LIBCURL_SOCKOPT
|
||||
static int onSocketCreated(void* vtask, curl_socket_t fd, curlsocktype /*purpose*/)
|
||||
{
|
||||
auto const* const task = static_cast<Task const*>(vtask);
|
||||
|
@ -547,7 +542,6 @@ public:
|
|||
// return nonzero if this function encountered an error
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
void initEasy(Task& task)
|
||||
{
|
||||
|
@ -563,11 +557,8 @@ public:
|
|||
(void)curl_easy_setopt(e, CURLOPT_NOSIGNAL, 1L);
|
||||
(void)curl_easy_setopt(e, CURLOPT_PRIVATE, &task);
|
||||
(void)curl_easy_setopt(e, CURLOPT_IPRESOLVE, task.ipProtocol());
|
||||
|
||||
#ifdef USE_LIBCURL_SOCKOPT
|
||||
(void)curl_easy_setopt(e, CURLOPT_SOCKOPTFUNCTION, onSocketCreated);
|
||||
(void)curl_easy_setopt(e, CURLOPT_SOCKOPTDATA, &task);
|
||||
#endif
|
||||
|
||||
if (!curl_ssl_verify)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue