From: Junio C Hamano Date: Sun, 10 Sep 2017 08:03:07 +0000 (+0900) Subject: Merge branch 'rs/commit-h-single-parent-cleanup' into maint X-Git-Tag: v2.14.2~7 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/02a19e9a48fab8782760f133c2a0e8c764788f3c?hp=d2ef4bedf9f0d31c5f7357f232d99b4cc29dc35c 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() --- 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 {