aboutsummaryrefslogtreecommitdiffstats
path: root/commit.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-09-10 17:03:07 +0900
committerJunio C Hamano <gitster@pobox.com>2017-09-10 17:03:07 +0900
commit02a19e9a48fab8782760f133c2a0e8c764788f3c (patch)
treebc4bb31e4c4cdabdbc6b6674443c500d4717e091 /commit.h
parentMerge branch 'mg/format-ref-doc-fix' into maint (diff)
parentcommit: remove unused inline function single_parent() (diff)
downloadgit-02a19e9a48fab8782760f133c2a0e8c764788f3c.tar.gz
git-02a19e9a48fab8782760f133c2a0e8c764788f3c.zip
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()
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 4127c298cb..f3805fec6b 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 {