diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-02-07 12:03:31 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-02-07 09:59:22 -0800 |
| commit | 7f17900b5ba2569d9d07352be51ce90a249a0b46 (patch) | |
| tree | d2a8edb66e391869842b9f0c0659df2fecf01e4c | |
| parent | f5c714e2a7d6239548b94c37ae906484e94b5bc7 (diff) | |
| download | git-7f17900b5ba2569d9d07352be51ce90a249a0b46.tar.gz | |
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>
| -rw-r--r-- | path.h | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -273,19 +273,6 @@ static inline char *git_path_buf(struct strbuf *buf, const char *fmt, ...) } /* - * 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 * (the_repository) git directory. */ |
