summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2017-12-25 17:48:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-12-28 21:50:05 (GMT)
commit6fcec2f9aeeac6329ecf2f7084173f5b4346588b (patch)
tree9977b8d60b6d1728d7b220462fcaf254d5c2eabc /commit.c
parentf1230fb5fc77a47fd7964bb3724db352aea4a476 (diff)
downloadgit-6fcec2f9aeeac6329ecf2f7084173f5b4346588b.zip
git-6fcec2f9aeeac6329ecf2f7084173f5b4346588b.tar.gz
git-6fcec2f9aeeac6329ecf2f7084173f5b4346588b.tar.bz2
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>
Diffstat (limited to 'commit.c')
-rw-r--r--commit.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/commit.c b/commit.c
index 9edc12f..ff51c9f 100644
--- a/commit.c
+++ b/commit.c
@@ -559,20 +559,6 @@ void clear_commit_marks(struct commit *commit, unsigned int mark)
clear_commit_marks_many(1, &commit, mark);
}
-void clear_commit_marks_for_object_array(struct object_array *a, unsigned mark)
-{
- struct object *object;
- struct commit *commit;
- unsigned int i;
-
- for (i = 0; i < a->nr; i++) {
- object = a->objects[i].item;
- commit = lookup_commit_reference_gently(&object->oid, 1);
- if (commit)
- clear_commit_marks(commit, mark);
- }
-}
-
struct commit *pop_commit(struct commit_list **stack)
{
struct commit_list *top = *stack;