summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-08-24 17:20:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-08-24 17:20:03 (GMT)
commit985b2cfc7b71cdaf842832afe3914e25a80dde25 (patch)
tree96735a3e0d56bebcaadb8ed1babfa208d537375e /commit.h
parentd33a43323676e110b2ad78c9baa54ec424d40d6b (diff)
parent24da8a26a983eb55279c729f5da63d92b45ee066 (diff)
downloadgit-985b2cfc7b71cdaf842832afe3914e25a80dde25.zip
git-985b2cfc7b71cdaf842832afe3914e25a80dde25.tar.gz
git-985b2cfc7b71cdaf842832afe3914e25a80dde25.tar.bz2
Merge branch 'rs/commit-h-single-parent-cleanup'
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 6d857f0..1283d2a 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 {