[PATCH] fetch.c: Remove redundant TO_FETCH flag
The TO_FETCH flag also became redundant after adding the SEEN flag - it was set and checked in process() to prevent adding the same object to process_queue multiple times, but now SEEN guards against this. Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Signed-off-by: Junio C Hamano <junkio@cox.net>
Sergey Vlasov committed
Sep 21, 2005 at 20:34 UTC
51d8faf8608aa8d2f6a8c4b3c1b712adb0d39325
1 file changed
+1
-3
fetch.c
+1
-3
@@ -55,7 +55,6 @@ static int process_tree(struct tree *tree)
55
}
56
57
#define COMPLETE 1U
58
-#define TO_FETCH 2U
58
#define TO_SCAN 4U
59
#define SEEN 16U
60
@@ -144,11 +143,10 @@ static int process(struct object *obj)
143
obj->flags |= TO_SCAN;
144
return 0;
145
}
147
- if (obj->flags & (COMPLETE | TO_FETCH))
146
+ if (obj->flags & COMPLETE)
147
return 0;
148
object_list_insert(obj, process_queue_end);
149
process_queue_end = &(*process_queue_end)->next;
151
- obj->flags |= TO_FETCH;
150
151
prefetch(obj->sha1);
152