Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
prompt.c: remove git_getpass() nobody uses
This was whittled down to a compatibility wrapper around the more
flexible git_prompt() in 1cb0134 (refactor git_getpass into generic
prompt function, 2011-12-10), waiting for the final callers to go
away.  That happened in 791643a (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>
  • Loading branch information
Junio C Hamano committed Jan 15, 2015
1 parent b90a3d7 commit 0fb1df4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions prompt.c
Expand Up @@ -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);
}
1 change: 0 additions & 1 deletion prompt.h
Expand Up @@ -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 */

0 comments on commit 0fb1df4

Please sign in to comment.