summaryrefslogtreecommitdiffstats
path: root/wrapper.c
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsayjones.plus.com>2017-02-28 02:26:06 +0100
committerJunio C Hamano <gitster@pobox.com>2017-02-28 20:54:21 +0100
commitb2d593a7797f4f9452e46f722e181604a5582897 (patch)
tree9e49c52ad35ac1da1824a4d2563f00117018e30e /wrapper.c
parentwrapper.c: remove unused git_mkstemp() function (diff)
downloadgit-b2d593a7797f4f9452e46f722e181604a5582897.tar.xz
git-b2d593a7797f4f9452e46f722e181604a5582897.zip
wrapper.c: remove unused gitmkstemps() function
The last call to the mkstemps() function was removed in commit 659488326 ("wrapper.c: delete dead function git_mkstemps()", 22-04-2016). In order to support platforms without mkstemps(), this functionality was provided, along with a Makefile build variable (NO_MKSTEMPS), by the gitmkstemps() function. Remove the dead code, along with the defunct build machinery. Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'wrapper.c')
-rw-r--r--wrapper.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/wrapper.c b/wrapper.c
index 1a140639f2..0542fc7582 100644
--- a/wrapper.c
+++ b/wrapper.c
@@ -514,13 +514,6 @@ int git_mkstemp_mode(char *pattern, int mode)
return git_mkstemps_mode(pattern, 0, mode);
}
-#ifdef NO_MKSTEMPS
-int gitmkstemps(char *pattern, int suffix_len)
-{
- return git_mkstemps_mode(pattern, suffix_len, 0600);
-}
-#endif
-
int xmkstemp_mode(char *template, int mode)
{
int fd;