Skip to content

Commit 02a19e9

Browse files
committed
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()
2 parents d2ef4be + 24da8a2 commit 02a19e9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

commit.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -313,11 +313,6 @@ extern int interactive_add(int argc, const char **argv, const char *prefix, int
313313
extern int run_add_interactive(const char *revision, const char *patch_mode,
314314
const struct pathspec *pathspec);
315315

316-
static inline int single_parent(struct commit *commit)
317-
{
318-
return commit->parents && !commit->parents->next;
319-
}
320-
321316
struct commit_list *reduce_heads(struct commit_list *heads);
322317

323318
struct commit_extra_header {

0 commit comments

Comments
 (0)