From 0b76a9b871217406dbdd36c6d01723689a326997 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Mon, 18 Sep 2023 19:39:07 -0400 Subject: [PATCH] drop git_path() --- path.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/path.h b/path.h index e91d19fff60f45..b0269857942e72 100644 --- a/path.h +++ b/path.h @@ -272,21 +272,6 @@ static inline void strbuf_git_path(struct strbuf *sb, const char *fmt, ...) va_end(args); } -/* - * Return a statically allocated path into the main repository's - * (the_repository) git directory. - */ -__attribute__((format (printf, 1, 2))) -static inline const char *git_path(const char *fmt, ...) -{ - struct strbuf *pathname = get_pathname(); - va_list args; - va_start(args, fmt); - repo_git_pathv(the_repository, NULL, pathname, fmt, args); - va_end(args); - return pathname->buf; -} - #define GIT_PATH_FUNC(func, filename) \ const char *func(void) \ { \