mirror of
https://github.com/git/git.git
synced 2026-01-10 10:13:33 +00:00
path: drop unused strbuf_git_path() function
The `strbuf_git_path()` function isn't used anywhere, and neither should it grow any callers because it depends on `the_repository`. Remove it. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
f5c714e2a7
commit
7f17900b5b
13
path.h
13
path.h
@@ -272,19 +272,6 @@ static inline char *git_path_buf(struct strbuf *buf, const char *fmt, ...)
|
|||||||
return buf->buf;
|
return buf->buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Construct a path into the main repository's (the_repository) git directory
|
|
||||||
* and append it to the provided buffer `sb`.
|
|
||||||
*/
|
|
||||||
__attribute__((format (printf, 2, 3)))
|
|
||||||
static inline void strbuf_git_path(struct strbuf *sb, const char *fmt, ...)
|
|
||||||
{
|
|
||||||
va_list args;
|
|
||||||
va_start(args, fmt);
|
|
||||||
repo_git_pathv(the_repository, NULL, sb, fmt, args);
|
|
||||||
va_end(args);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Return a statically allocated path into the main repository's
|
* Return a statically allocated path into the main repository's
|
||||||
* (the_repository) git directory.
|
* (the_repository) git directory.
|
||||||
|
|||||||
Reference in New Issue
Block a user