ident.c: remove unused variables
d5cc2de (ident.c: Trim hint printed when gecos is empty., 2006-11-28) reworded the message used as printf() format and dropped "%s" from it; these two variables that hold the names of GIT_{AUTHOR,COMMITTER}_NAME environment variables haven't been used since then. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Jan 8, 2010 at 05:53 UTC
18e95f279ec62cc8d5e5ab709b162ccc55eebf0a
1 file changed
+1
-3
ident.c
+1
-3
@@ -168,8 +168,6 @@ static int copy(char *buf, size_t size, int offset, const char *src)
168
return offset;
169
}
170
171
-static const char au_env[] = "GIT_AUTHOR_NAME";
172
-static const char co_env[] = "GIT_COMMITTER_NAME";
171
static const char *env_hint =
172
"\n"
173
"*** Please tell me who you are.\n"
@@ -204,7 +202,7 @@ const char *fmt_ident(const char *name, const char *email,
202
203
if ((warn_on_no_name || error_on_no_name) &&
204
name == git_default_name && env_hint) {
207
- fprintf(stderr, env_hint, au_env, co_env);
205
+ fprintf(stderr, env_hint);
206
env_hint = NULL; /* warn only once */
207
}
208
if (error_on_no_name)