]> git.ipfire.org Git - thirdparty/git.git/commitdiff
path: drop unused `strbuf_git_path()` function
authorPatrick Steinhardt <ps@pks.im>
Fri, 7 Feb 2025 11:03:31 +0000 (12:03 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Feb 2025 17:59:22 +0000 (09:59 -0800)
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>
path.h

diff --git a/path.h b/path.h
index 4fe523626c505905d46c3eff68fe8aae7bb3f68a..8798db74694b23e3500e1d5a2038727587946b55 100644 (file)
--- 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.