From: Junio C Hamano Date: Wed, 14 Jan 2015 23:40:48 +0000 (-0800) Subject: prompt.c: remove git_getpass() nobody uses X-Git-Tag: v2.4.0-rc0~130^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0fb1df4af2a28bc95b26fbd9d4f172a461d88ef2;p=thirdparty%2Fgit.git prompt.c: remove git_getpass() nobody uses This was whittled down to a compatibility wrapper around the more flexible git_prompt() in 1cb0134f (refactor git_getpass into generic prompt function, 2011-12-10), waiting for the final callers to go away. That happened in 791643a8 (imap-send: use git-credential, 2014-04-28) when imap-send learned to use the credential interface. Reviewed-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/prompt.c b/prompt.c index 8181eebbfc..75406390c6 100644 --- a/prompt.c +++ b/prompt.c @@ -73,8 +73,3 @@ char *git_prompt(const char *prompt, int flags) } return r; } - -char *git_getpass(const char *prompt) -{ - return git_prompt(prompt, PROMPT_ASKPASS); -} diff --git a/prompt.h b/prompt.h index 04f321a781..e04cced030 100644 --- a/prompt.h +++ b/prompt.h @@ -5,6 +5,5 @@ #define PROMPT_ECHO (1<<1) char *git_prompt(const char *prompt, int flags); -char *git_getpass(const char *prompt); #endif /* PROMPT_H */