Skip to content

Commit 7f17900

Browse files
pks-tgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f5c714e commit 7f17900

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

path.h

-13
Original file line numberDiff line numberDiff line change
@@ -272,19 +272,6 @@ static inline char *git_path_buf(struct strbuf *buf, const char *fmt, ...)
272272
return buf->buf;
273273
}
274274

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-
288275
/*
289276
* Return a statically allocated path into the main repository's
290277
* (the_repository) git directory.

0 commit comments

Comments
 (0)