summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-09-10 08:03:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-09-10 08:03:07 (GMT)
commit02a19e9a48fab8782760f133c2a0e8c764788f3c (patch)
treebc4bb31e4c4cdabdbc6b6674443c500d4717e091
parentd2ef4bedf9f0d31c5f7357f232d99b4cc29dc35c (diff)
parent24da8a26a983eb55279c729f5da63d92b45ee066 (diff)
downloadgit-02a19e9a48fab8782760f133c2a0e8c764788f3c.zip
git-02a19e9a48fab8782760f133c2a0e8c764788f3c.tar.gz
git-02a19e9a48fab8782760f133c2a0e8c764788f3c.tar.bz2
Merge branch 'rs/commit-h-single-parent-cleanup' into maint
Code clean-up. * rs/commit-h-single-parent-cleanup: commit: remove unused inline function single_parent()
-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 {