Skip to content

Commit 47bf147

Browse files
rscharfegitster
authored andcommitted
compat: remove mingw_mktemp()
Remove the mktemp(3) compatibility function now that its last caller was removed by the previous commit. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 5ecd359 commit 47bf147

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

compat/mingw-posix.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,6 @@ int mingw_chdir(const char *dirname);
241241
int mingw_chmod(const char *filename, int mode);
242242
#define chmod mingw_chmod
243243

244-
char *mingw_mktemp(char *template);
245-
#define mktemp mingw_mktemp
246-
247244
char *mingw_getcwd(char *pointer, int len);
248245
#define getcwd mingw_getcwd
249246

compat/mingw.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,18 +1162,6 @@ unsigned int sleep (unsigned int seconds)
11621162
return 0;
11631163
}
11641164

1165-
char *mingw_mktemp(char *template)
1166-
{
1167-
wchar_t wtemplate[MAX_PATH];
1168-
if (xutftowcs_path(wtemplate, template) < 0)
1169-
return NULL;
1170-
if (!_wmktemp(wtemplate))
1171-
return NULL;
1172-
if (xwcstoutf(template, wtemplate, strlen(template) + 1) < 0)
1173-
return NULL;
1174-
return template;
1175-
}
1176-
11771165
int mkstemp(char *template)
11781166
{
11791167
return git_mkstemp_mode(template, 0600);

0 commit comments

Comments
 (0)