]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
urldata: remove the unused struct field 'hide_progress'
authorDaniel Stenberg <daniel@haxx.se>
Fri, 23 May 2025 14:30:57 +0000 (16:30 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 23 May 2025 15:15:32 +0000 (17:15 +0200)
It was only set, never read.

Closes #17430

lib/setopt.c
lib/url.c
lib/urldata.h

index 98def48d04a7c802c251ba0f65c7168f700246a4..cc243dde1fedd844ffea86c3aec62b9fd1ad9814 100644 (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;
index 6c6945531212d93ea88cef18745689080713a9db..fd4eb53ffd2a889a635614a6a489c94883da74d3 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -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);
index 616e3a633d86198dbad4b30058a7b670e701ae80..076345ca20fc38aa9830cbd8e85d85974ec7703c 100644 (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 */