diff options
author | Jeff King <peff@peff.net> | 2015-08-10 05:36:27 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-08-10 15:37:13 -0700 |
commit | 07e3070d2aa69b0c8f1da5f103a87125ff4baaea (patch) | |
tree | d58adb8eff1cf700ff4414a4742cfc8a83460866 /path.c | |
parent | f5b2dec1657e09a22f8b2aefa25d022988e3e467 (diff) | |
download | git-07e3070d2aa69b0c8f1da5f103a87125ff4baaea.tar.gz |
path.c: drop git_path_submodule
There are no callers of the slightly-dangerous static-buffer
git_path_submodule left. Let's drop it.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'path.c')
-rw-r--r-- | path.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -245,16 +245,6 @@ static void do_submodule_path(struct strbuf *buf, const char *path, strbuf_cleanup_path(buf); } -const char *git_path_submodule(const char *path, const char *fmt, ...) -{ - va_list args; - struct strbuf *buf = get_pathname(); - va_start(args, fmt); - do_submodule_path(buf, path, fmt, args); - va_end(args); - return buf->buf; -} - char *git_pathdup_submodule(const char *path, const char *fmt, ...) { va_list args; |