Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
commit: remove unused function clear_commit_marks_for_object_array()
author
René Scharfe
<l.s.r@web.de>
Mon, 25 Dec 2017 17:48:34 +0000
(18:48 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 28 Dec 2017 21:50:05 +0000
(13:50 -0800)
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c
patch
|
blob
|
history
commit.h
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
f1230fb
)
diff --git
a/commit.c
b/commit.c
index 9edc12f338349e9e2d834395f8ca571b697d4353..ff51c9f34a975fdd3320f8c185f6e3c8b5176e81 100644
(file)
--- 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);
}
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;
struct commit *pop_commit(struct commit_list **stack)
{
struct commit_list *top = *stack;
diff --git
a/commit.h
b/commit.h
index 99a3fea68d3f63064351ccabeaf7f11cdf8e0d04..bdf14f0a725e38e05abf1a68470415a8655a3d73 100644
(file)
--- a/
commit.h
+++ b/
commit.h
@@
-219,7
+219,6
@@
struct commit *pop_commit(struct commit_list **stack);
void clear_commit_marks(struct commit *commit, unsigned int mark);
void clear_commit_marks_many(int nr, struct commit **commit, unsigned int mark);
void clear_commit_marks(struct commit *commit, unsigned int mark);
void clear_commit_marks_many(int nr, struct commit **commit, unsigned int mark);
-void clear_commit_marks_for_object_array(struct object_array *a, unsigned mark);
enum rev_sort_order {
enum rev_sort_order {