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>

Patrick Steinhardt committed Feb 7, 2025 at 12:03 UTC 7f17900b5ba2569d9d07352be51ce90a249a0b46
1 file changed -13
path.h
-13
@@ -272,19 +272,6 @@ static inline char *git_path_buf(struct strbuf *buf, const char *fmt, ...)
272 return buf->buf;
273 }
274
275 -/*
276 - * Construct a path into the main repository's (the_repository) git directory
277 - * and append it to the provided buffer `sb`.
278 - */
279 -__attribute__((format (printf, 2, 3)))
280 -static inline void strbuf_git_path(struct strbuf *sb, const char *fmt, ...)
281 -{
282 - va_list args;
283 - va_start(args, fmt);
284 - repo_git_pathv(the_repository, NULL, sb, fmt, args);
285 - va_end(args);
286 -}
287 -
275 /*
276 * Return a statically allocated path into the main repository's
277 * (the_repository) git directory.