From 34de5e4bb0dfe1c05b57c733c2196f1ad3881a98 Mon Sep 17 00:00:00 2001 From: Ramsay Jones Date: Tue, 28 Feb 2017 01:24:10 +0000 Subject: wrapper.c: remove unused git_mkstemp() function The last caller of git_mkstemp() was removed in commit 6fec0a89 ("verify_signed_buffer: use tempfile object", 16-06-2016). Since the introduction of the 'tempfile' APIs, along with git_mkstemp_mode, it is unlikely that new callers will materialize. Remove the dead code. Signed-off-by: Ramsay Jones Reviewed-by: Jeff King Signed-off-by: Junio C Hamano --- cache.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'cache.h') diff --git a/cache.h b/cache.h index 61fc86e6d7..a575684a98 100644 --- a/cache.h +++ b/cache.h @@ -1045,9 +1045,6 @@ static inline int is_empty_tree_oid(const struct object_id *oid) return !hashcmp(oid->hash, EMPTY_TREE_SHA1_BIN); } - -int git_mkstemp(char *path, size_t n, const char *template); - /* set default permissions by passing mode arguments to open(2) */ int git_mkstemps_mode(char *pattern, int suffix_len, int mode); int git_mkstemp_mode(char *pattern, int mode); -- cgit v1.2.3