mark_parents_uninteresting(): drop missing object check
[gitweb.git] / revision.c
index 9de92bb5e577cfe4c568b41c88939fe2f29d4d38..e1fa9b13b9d9320256c647a1bba9c12eff6629cf 100644 (file)
@@ -102,18 +102,6 @@ void mark_parents_uninteresting(struct commit *commit)
                struct commit *commit = pop_commit(&parents);
 
                while (commit) {
-                       /*
-                        * A missing commit is ok iff its parent is marked
-                        * uninteresting.
-                        *
-                        * We just mark such a thing parsed, so that when
-                        * it is popped next time around, we won't be trying
-                        * to parse it and get an error.
-                        */
-                       if (!commit->object.parsed &&
-                           !has_object_file(&commit->object.oid))
-                               commit->object.parsed = 1;
-
                        if (commit->object.flags & UNINTERESTING)
                                break;