Skip to content

Commit 6fcec2f

Browse files
rscharfegitster
authored andcommitted
commit: remove unused function clear_commit_marks_for_object_array()
Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f1230fb commit 6fcec2f

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

commit.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -559,20 +559,6 @@ void clear_commit_marks(struct commit *commit, unsigned int mark)
559559
clear_commit_marks_many(1, &commit, mark);
560560
}
561561

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-
576562
struct commit *pop_commit(struct commit_list **stack)
577563
{
578564
struct commit_list *top = *stack;

commit.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ struct commit *pop_commit(struct commit_list **stack);
219219

220220
void clear_commit_marks(struct commit *commit, unsigned int mark);
221221
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);
223222

224223

225224
enum rev_sort_order {

0 commit comments

Comments
 (0)