prompt.c: remove git_getpass() nobody uses
authorJunio C Hamano <gitster@pobox.com>
Wed, 14 Jan 2015 23:40:48 +0000 (15:40 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Jan 2015 19:02:06 +0000 (11:02 -0800)
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 <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
prompt.c
prompt.h
index 8181eebbfcd0080540bc580416336436ced98297..75406390c6fdabf74e74d4c2a90e6ac92afc4ccc 100644 (file)
--- 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);
-}
index 04f321a781d37af780b906c2a4564c08eea830c8..e04cced030ca4df6d729c2132ca4671b959952b4 100644 (file)
--- 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 */