From: Daniel Stenberg Date: Wed, 27 May 2026 13:45:50 +0000 (+0200) Subject: creds: remove two unused functions X-Git-Tag: rc-8_21_0-1~33 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=98431e89bbfdae6ea096403fcd0cd1eb7599e3bc;p=thirdparty%2Fcurl.git creds: remove two unused functions Curl_creds_same_user and Curl_creds_same_password Closes #21776 --- diff --git a/lib/creds.c b/lib/creds.c index e59c601b95..779ae2f131 100644 --- a/lib/creds.c +++ b/lib/creds.c @@ -149,16 +149,6 @@ void Curl_creds_unlink(struct Curl_creds **pcreds) } } -bool Curl_creds_same_user(struct Curl_creds *creds, const char *user) -{ - return creds && !Curl_timestrcmp(creds->user, user); -} - -bool Curl_creds_same_passwd(struct Curl_creds *creds, const char *passwd) -{ - return creds && !Curl_timestrcmp(creds->passwd, passwd); -} - bool Curl_creds_same(struct Curl_creds *c1, struct Curl_creds *c2) { return (c1 == c2) || diff --git a/lib/creds.h b/lib/creds.h index f979629f49..fc978285db 100644 --- a/lib/creds.h +++ b/lib/creds.h @@ -66,8 +66,6 @@ void Curl_creds_unlink(struct Curl_creds **pcreds); /* TRUE if both creds are NULL or have same username and password. */ bool Curl_creds_same(struct Curl_creds *c1, struct Curl_creds *c2); -bool Curl_creds_same_user(struct Curl_creds *creds, const char *user); -bool Curl_creds_same_passwd(struct Curl_creds *creds, const char *passwd); /* Provides properties for creds or, if creds is NULL, the empty string */ #define Curl_creds_has_user(c) ((c) && (c)->user[0])