commit: remove unused function clear_commit_marks_for_object_array()
Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
René Scharfe committed
Dec 25, 2017 at 18:48 UTC
6fcec2f9aeeac6329ecf2f7084173f5b4346588b
2 files changed
-15
commit.c
-14
@@ -559,20 +559,6 @@ void clear_commit_marks(struct commit *commit, unsigned int mark)
559
clear_commit_marks_many(1, &commit, mark);
560
}
561
562
-void clear_commit_marks_for_object_array(struct object_array *a, unsigned mark)
563
-{
564
- struct object *object;
565
- struct commit *commit;
566
- unsigned int i;
567
-
568
- for (i = 0; i < a->nr; i++) {
569
- object = a->objects[i].item;
570
- commit = lookup_commit_reference_gently(&object->oid, 1);
571
- if (commit)
572
- clear_commit_marks(commit, mark);
573
- }
574
-}
575
-
562
struct commit *pop_commit(struct commit_list **stack)
563
{
564
struct commit_list *top = *stack;
commit.h
-1
@@ -219,7 +219,6 @@ struct commit *pop_commit(struct commit_list **stack);
219
220
void clear_commit_marks(struct commit *commit, unsigned int mark);
221
void clear_commit_marks_many(int nr, struct commit **commit, unsigned int mark);
222
-void clear_commit_marks_for_object_array(struct object_array *a, unsigned mark);
222
223
224
enum rev_sort_order {