urldata: remove the unused struct field 'hide_progress'

It was only set, never read.

Closes #17430
This commit is contained in:
Daniel Stenberg 2025-05-23 16:30:57 +02:00
parent 1fef013b81
commit b445031e94
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 1 additions and 6 deletions

View file

@ -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;

View file

@ -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);

View file

@ -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 */