]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
creds: remove two unused functions
authorDaniel Stenberg <daniel@haxx.se>
Wed, 27 May 2026 13:45:50 +0000 (15:45 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 27 May 2026 21:16:51 +0000 (23:16 +0200)
Curl_creds_same_user and Curl_creds_same_password

Closes #21776

lib/creds.c
lib/creds.h

index e59c601b9585de3e976fcb3101b459063d14a2f9..779ae2f1316704a052f1b356b68ed1ecc38f981b 100644 (file)
@@ -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) ||
index f979629f49382dd009c45db180d052087b430492..fc978285dbb69cfab53a3f0487405f2352da60ce 100644 (file)
@@ -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])