]> asedeno.scripts.mit.edu Git - git.git/blobdiff - commit.c
gitweb: Add links to blobdiffs in from-file/to-file header for merges
[git.git] / commit.c
index 57b69ca7fa65ccec4502a53fd48d1684cfd09685..4ca4d44ba0d648c6c102ac17160b69f6f0f02836 100644 (file)
--- a/commit.c
+++ b/commit.c
@@ -1116,15 +1116,6 @@ struct commit *pop_commit(struct commit_list **stack)
        return item;
 }
 
-int count_parents(struct commit * commit)
-{
-        int count;
-        struct commit_list * parents = commit->parents;
-        for (count = 0; parents; parents = parents->next,count++)
-               ;
-        return count;
-}
-
 void topo_sort_default_setter(struct commit *c, void *data)
 {
        c->util = data;