mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:21:41 +03:00
urldata: remove the unused struct field 'hide_progress'
It was only set, never read. Closes #17430
This commit is contained in:
parent
1fef013b81
commit
b445031e94
3 changed files with 1 additions and 6 deletions
|
|
@ -473,8 +473,7 @@ static CURLcode setopt_long(struct Curl_easy *data, CURLoption option,
|
|||
/*
|
||||
* Shut off the internal supported progress meter
|
||||
*/
|
||||
data->set.hide_progress = enabled;
|
||||
if(data->set.hide_progress)
|
||||
if(enabled)
|
||||
data->progress.flags |= PGRS_HIDE;
|
||||
else
|
||||
data->progress.flags &= ~PGRS_HIDE;
|
||||
|
|
|
|||
|
|
@ -395,9 +395,6 @@ CURLcode Curl_init_userdefined(struct Curl_easy *data)
|
|||
set->socks5auth = CURLAUTH_BASIC | CURLAUTH_GSSAPI;
|
||||
#endif
|
||||
|
||||
/* make libcurl quiet by default: */
|
||||
set->hide_progress = TRUE; /* CURLOPT_NOPROGRESS changes these */
|
||||
|
||||
Curl_mime_initpart(&set->mimepost);
|
||||
|
||||
Curl_ssl_easy_config_init(data);
|
||||
|
|
|
|||
|
|
@ -1717,7 +1717,6 @@ struct UserDefined {
|
|||
us */
|
||||
BIT(wildcard_enabled); /* enable wildcard matching */
|
||||
#endif
|
||||
BIT(hide_progress); /* do not use the progress meter */
|
||||
BIT(http_fail_on_error); /* fail on HTTP error codes >= 400 */
|
||||
BIT(http_keep_sending_on_error); /* for HTTP status codes >= 300 */
|
||||
BIT(http_transfer_encoding); /* request compressed HTTP transfer-encoding */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue