summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2017-08-19 08:12:45 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-08-19 16:24:05 (GMT)
commit24da8a26a983eb55279c729f5da63d92b45ee066 (patch)
tree64050203ab4e2467ac527aca1c663ec4626d39ee /commit.h
parent4d7268b888d7bb6d675340ec676e4239739d0f6d (diff)
downloadgit-24da8a26a983eb55279c729f5da63d92b45ee066.zip
git-24da8a26a983eb55279c729f5da63d92b45ee066.tar.gz
git-24da8a26a983eb55279c729f5da63d92b45ee066.tar.bz2
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>
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/commit.h b/commit.h
index 4127c29..f3805fe 100644
--- 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 {