Skip to contentSkip to conversation

ident: remove unused author_ident_sufficiently_given()

PATCH New Junio C Hamano 1 participant 1 message Oct 28

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ident: remove unused author_ident_sufficiently_given()

A pair of functions {author,committer}_ident_sufficiently_given() were created to replace user_ident_explicitly_given() in d6991ceedc (ident: keep separate "explicit" flags for author and committer, 2012-11-14).

But author_ident_sufficiently_given() is never used in our history. We only check if committer ident is sufficiently given and use it to nudge the user to set user.{name,email} configuration variables.

Remove the unused author_ident_sufficiently_given() function.

---
 ident.c | 5 -----
 ident.h | 1 -
 2 files changed, 6 deletions(-)
ident.c +0 -5
index 0b7aacecd7..eb73d073d8 100644
@@ -602,11 +602,6 @@ int committer_ident_sufficiently_given(void)
 	return ident_is_sufficient(committer_ident_explicitly_given);
 }
 
-int author_ident_sufficiently_given(void)
-{
-	return ident_is_sufficient(author_ident_explicitly_given);
-}
-
 static int set_ident(const char *var, const char *value)
 {
 	if (!strcmp(var, "author.name")) {
ident.h +0 -1
index 3c03403879..7e60e36415 100644
@@ -60,7 +60,6 @@ const char *fmt_ident(const char *name, const char *email,
 const char *fmt_name(enum want_ident);
 
 int committer_ident_sufficiently_given(void);
-int author_ident_sufficiently_given(void);
 
 struct config_context;
 int git_ident_config(const char *, const char *, const struct config_context *,
Signature · 1 line
2.56.0-433-ga9209adf11