diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-01-08 05:53:56 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-08 05:53:56 -0800 |
commit | 18e95f279ec62cc8d5e5ab709b162ccc55eebf0a (patch) | |
tree | bf25a789ef5a13928a480c4aee8d73c1cf54f179 /ident.c | |
parent | d6f8fd0b3eeb4349493209740742d67616e0263c (diff) | |
download | git-18e95f279ec62cc8d5e5ab709b162ccc55eebf0a.tar.gz |
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>
Diffstat (limited to 'ident.c')
-rw-r--r-- | ident.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -168,8 +168,6 @@ static int copy(char *buf, size_t size, int offset, const char *src) return offset; } -static const char au_env[] = "GIT_AUTHOR_NAME"; -static const char co_env[] = "GIT_COMMITTER_NAME"; static const char *env_hint = "\n" "*** Please tell me who you are.\n" @@ -204,7 +202,7 @@ const char *fmt_ident(const char *name, const char *email, if ((warn_on_no_name || error_on_no_name) && name == git_default_name && env_hint) { - fprintf(stderr, env_hint, au_env, co_env); + fprintf(stderr, env_hint); env_hint = NULL; /* warn only once */ } if (error_on_no_name) |