summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorErik Faye-Lund <kusmabite@gmail.com>2012-12-04 09:10:42 +0100
committerJunio C Hamano <gitster@pobox.com>2012-12-04 08:03:42 -0800
commitf7a4cea25e3ee1c8f27777bc4293dca0210fa573 (patch)
tree54abe0aecdbfadfcb55e1d5c983b4faec966c541 /compat
parentafb43561b81b435216b5b8c59fdaa48255e662fb (diff)
downloadgit-f7a4cea25e3ee1c8f27777bc4293dca0210fa573.tar.gz
mingw: get rid of getpass implementation
There's no remaining call-sites, and as pointed out in the previous commit message, it's not quite ideal. So let's just lose it. Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat')
-rw-r--r--compat/mingw.c15
-rw-r--r--compat/mingw.h2
2 files changed, 0 insertions, 17 deletions
diff --git a/compat/mingw.c b/compat/mingw.c
index c749a0259d..34724c2781 100644
--- a/compat/mingw.c
+++ b/compat/mingw.c
@@ -1780,21 +1780,6 @@ int link(const char *oldpath, const char *newpath)
return 0;
}
-char *getpass(const char *prompt)
-{
- struct strbuf buf = STRBUF_INIT;
-
- fputs(prompt, stderr);
- for (;;) {
- char c = _getch();
- if (c == '\r' || c == '\n')
- break;
- strbuf_addch(&buf, c);
- }
- fputs("\n", stderr);
- return strbuf_detach(&buf, NULL);
-}
-
pid_t waitpid(pid_t pid, int *status, int options)
{
HANDLE h = OpenProcess(SYNCHRONIZE | PROCESS_QUERY_INFORMATION,
diff --git a/compat/mingw.h b/compat/mingw.h
index 68db8b7f7d..685cd2c3d4 100644
--- a/compat/mingw.h
+++ b/compat/mingw.h
@@ -55,8 +55,6 @@ struct passwd {
char *pw_dir;
};
-extern char *getpass(const char *prompt);
-
typedef void (__cdecl *sig_handler_t)(int);
struct sigaction {
sig_handler_t sa_handler;