← Commit list

98431e89bb

Daniel Stenberg
Daniel Stenberg
2026-05-27
SUCCESS Duration: 274s

Subject

creds: remove two unused functions

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/creds.c+0 -10
@@ -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) ||
lib/creds.h+0 -2
@@ -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])