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>
René Scharfe committed
Dec 6, 2025 at 14:28 UTC
47bf14750eee7e43e12d20414d3698f203245a35
2 files changed
-15
compat/mingw-posix.h
-3
@@ -241,9 +241,6 @@ int mingw_chdir(const char *dirname);
241
int mingw_chmod(const char *filename, int mode);
242
#define chmod mingw_chmod
243
244
-char *mingw_mktemp(char *template);
245
-#define mktemp mingw_mktemp
246
-
244
char *mingw_getcwd(char *pointer, int len);
245
#define getcwd mingw_getcwd
246
compat/mingw.c
-12
@@ -1162,18 +1162,6 @@ unsigned int sleep (unsigned int seconds)
1162
return 0;
1163
}
1164
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
-
1165
int mkstemp(char *template)
1166
{
1167
return git_mkstemp_mode(template, 0600);