mirror of
https://github.com/curl/curl.git
synced 2026-08-25 07:23:31 +03:00
multi: remove the unused Curl_preconnect function
The implementation has been removed, no point in keeping it around.
Follow-up to 476adfeac0
Closes #13422
This commit is contained in:
parent
fe226af174
commit
25236c6a80
3 changed files with 7 additions and 32 deletions
17
lib/multi.c
17
lib/multi.c
|
|
@ -1881,19 +1881,6 @@ static CURLcode protocol_connect(struct Curl_easy *data,
|
|||
return result; /* pass back status */
|
||||
}
|
||||
|
||||
/*
|
||||
* Curl_preconnect() is called immediately before a connect starts. When a
|
||||
* redirect is followed, this is then called multiple times during a single
|
||||
* transfer.
|
||||
*/
|
||||
CURLcode Curl_preconnect(struct Curl_easy *data)
|
||||
{
|
||||
/* this used to do data->state.buffer allocation,
|
||||
maybe remove completely now? */
|
||||
(void)data;
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
||||
static void set_in_callback(struct Curl_multi *multi, bool value)
|
||||
{
|
||||
multi->in_callback = value;
|
||||
|
|
@ -1985,10 +1972,6 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
|
|||
case MSTATE_CONNECT:
|
||||
/* Connect. We want to get a connection identifier filled in. This state
|
||||
can be entered from SETUP and from PENDING. */
|
||||
result = Curl_preconnect(data);
|
||||
if(result)
|
||||
break;
|
||||
|
||||
result = Curl_connect(data, &async, &connected);
|
||||
if(CURLE_NO_CONNECTION_AVAILABLE == result) {
|
||||
/* There was no connection available. We will go to the pending
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue