From: Patrick Steinhardt Date: Fri, 7 Feb 2025 11:03:31 +0000 (+0100) Subject: path: drop unused `strbuf_git_path()` function X-Git-Tag: v2.49.0-rc2~13^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7f17900b5ba2569d9d07352be51ce90a249a0b46;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/path.h b/path.h index 4fe523626c..8798db7469 100644 --- a/path.h +++ b/path.h @@ -272,19 +272,6 @@ static inline char *git_path_buf(struct strbuf *buf, const char *fmt, ...) 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 * (the_repository) git directory.