diff options
| author | Junio C Hamano <gitster@pobox.com> | 2016-05-18 14:40:11 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2016-05-18 14:40:11 -0700 |
| commit | 14af79b93d3f8fa4aaf97a05f8a0564071c656a0 (patch) | |
| tree | b01014f78672bd64b90b2c79cfc79b7acd24ee28 /wrapper.c | |
| parent | 13af774e263341eecdd67e6ca28ecc47d7997152 (diff) | |
| parent | 659488326cf6a170cd474e66f1bed6f5bc322eab (diff) | |
| download | git-14af79b93d3f8fa4aaf97a05f8a0564071c656a0.tar.xz | |
Merge branch 'nd/remove-unused' into HEAD
Code cleanup.
* nd/remove-unused:
wrapper.c: delete dead function git_mkstemps()
dir.c: remove dead function fnmatch_icase()
Diffstat (limited to 'wrapper.c')
| -rw-r--r-- | wrapper.c | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -446,23 +446,6 @@ int git_mkstemp(char *path, size_t len, const char *template) return mkstemp(path); } -/* git_mkstemps() - create tmp file with suffix honoring TMPDIR variable. */ -int git_mkstemps(char *path, size_t len, const char *template, int suffix_len) -{ - const char *tmp; - size_t n; - - tmp = getenv("TMPDIR"); - if (!tmp) - tmp = "/tmp"; - n = snprintf(path, len, "%s/%s", tmp, template); - if (len <= n) { - errno = ENAMETOOLONG; - return -1; - } - return mkstemps(path, suffix_len); -} - /* Adapted from libiberty's mkstemp.c. */ #undef TMP_MAX |
