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>
This commit is contained in:

committed by
Junio C Hamano

parent
f5b2dec165
commit
07e3070d2a
10
path.c
10
path.c
@ -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;
|
||||
|
Reference in New Issue
Block a user