mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 14:08:07 -05:00
curl: remove dead code
The loop never loops (since b889408500
), pointed out by Coverity (CID
1451702)
Closes #4133
This commit is contained in:
parent
71299394ef
commit
7644abf8e8
@ -1827,7 +1827,6 @@ static CURLcode create_transfers(struct GlobalConfig *global,
|
||||
my_setopt_str(curl, CURLOPT_ALTSVC, config->altsvc);
|
||||
#endif
|
||||
|
||||
for(;;) {
|
||||
#ifdef USE_METALINK
|
||||
if(!metalink && config->use_metalink) {
|
||||
outs->metalink_parser = metalink_parser_context_new();
|
||||
@ -1852,11 +1851,6 @@ static CURLcode create_transfers(struct GlobalConfig *global,
|
||||
per->retry_sleep = per->retry_sleep_default; /* ms */
|
||||
per->retrystart = tvnow();
|
||||
|
||||
|
||||
/* In all ordinary cases, just break out of loop here */
|
||||
break; /* curl_easy_perform loop */
|
||||
|
||||
}
|
||||
} /* loop to the next URL */
|
||||
|
||||
show_error:
|
||||
|
Loading…
Reference in New Issue
Block a user