commit: remove unused inline function single_parent()

53b2c823f6 (revision walker: mini clean-up) added the function in 2007, but it was never used, so we should be able to get rid of it now. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

René Scharfe committed Aug 19, 2017 at 10:12 UTC 24da8a26a983eb55279c729f5da63d92b45ee066
1 file changed -5
commit.h
-5
@@ -313,11 +313,6 @@ extern int interactive_add(int argc, const char **argv, const char *prefix, int
313 extern int run_add_interactive(const char *revision, const char *patch_mode,
314 const struct pathspec *pathspec);
315
316 -static inline int single_parent(struct commit *commit)
317 -{
318 - return commit->parents && !commit->parents->next;
319 -}
320 -
316 struct commit_list *reduce_heads(struct commit_list *heads);
317
318 struct commit_extra_header {