mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
lib: eliminate some dead code
This commit is contained in:
parent
684830cb2a
commit
c072bd4609
@ -1793,11 +1793,12 @@ static void singlesocket(struct Curl_multi *multi,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* we know (entry != NULL) at this point, see the logic above */
|
||||||
multi->socket_cb(easy->easy_handle,
|
multi->socket_cb(easy->easy_handle,
|
||||||
s,
|
s,
|
||||||
action,
|
action,
|
||||||
multi->socket_userp,
|
multi->socket_userp,
|
||||||
entry ? entry->socketp : NULL);
|
entry->socketp);
|
||||||
|
|
||||||
entry->action = action; /* store the current action state */
|
entry->action = action; /* store the current action state */
|
||||||
}
|
}
|
||||||
|
@ -2057,13 +2057,12 @@ static CURLcode Curl_do_perform(struct SessionHandle *data)
|
|||||||
if(rc)
|
if(rc)
|
||||||
res = rc;
|
res = rc;
|
||||||
else
|
else
|
||||||
retry = (bool)(newurl?TRUE:FALSE);
|
retry = (newurl?TRUE:FALSE);
|
||||||
|
|
||||||
if(retry) {
|
if(retry) {
|
||||||
|
/* we know (newurl != NULL) at this point */
|
||||||
res = CURLE_OK;
|
res = CURLE_OK;
|
||||||
follow = FOLLOW_RETRY;
|
follow = FOLLOW_RETRY;
|
||||||
if (!newurl)
|
|
||||||
res = CURLE_OUT_OF_MEMORY;
|
|
||||||
}
|
}
|
||||||
else if (res == CURLE_OK) {
|
else if (res == CURLE_OK) {
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user