Skip to content

Commit 24da8a2

Browse files
rscharfegitster
authored andcommitted
commit: remove unused inline function single_parent()
53b2c82 (revision walker: mini clean-up) added the function in 2007, but it was never used, so we should be able to get rid of it now. Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4d7268b commit 24da8a2

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)