commit: remove unused inline function single_parent()
authorRené Scharfe <l.s.r@web.de>
Sat, 19 Aug 2017 08:12:45 +0000 (10:12 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 19 Aug 2017 16:24:05 +0000 (09:24 -0700)
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>
commit.h
index 4127c298cb1370a9ab56ca9d003e853b3e26b67e..f3805fec6b3a5853316d1476619adc5410224a7e 100644 (file)
--- a/commit.h
+++ b/commit.h
@@ -313,11 +313,6 @@ extern int interactive_add(int argc, const char **argv, const char *prefix, int
 extern int run_add_interactive(const char *revision, const char *patch_mode,
                               const struct pathspec *pathspec);
 
-static inline int single_parent(struct commit *commit)
-{
-       return commit->parents && !commit->parents->next;
-}
-
 struct commit_list *reduce_heads(struct commit_list *heads);
 
 struct commit_extra_header {