refs.c: refactor get_submodule_ref_store(), share common free block
[gitweb.git] / commit.h
index 6d857f06c16c0dfc3a447355d9a185b416e4e664..1283d2a51fdab6d63c75bcdf62adfef3bd2564ba 100644 (file)
--- 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 {