From: Sergey Vlasov Date: Wed, 21 Sep 2005 16:34:09 +0000 (+0400) Subject: [PATCH] fetch.c: Remove redundant TO_FETCH flag X-Git-Tag: v0.99.7b~1^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=51d8faf8608aa8d2f6a8c4b3c1b712adb0d39325;p=git.git [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 Signed-off-by: Junio C Hamano --- diff --git a/fetch.c b/fetch.c index a1748e0b3..390de99f2 100644 --- a/fetch.c +++ b/fetch.c @@ -55,7 +55,6 @@ static int process_tree(struct tree *tree) } #define COMPLETE 1U -#define TO_FETCH 2U #define TO_SCAN 4U #define SEEN 16U @@ -144,11 +143,10 @@ static int process(struct object *obj) obj->flags |= TO_SCAN; return 0; } - if (obj->flags & (COMPLETE | TO_FETCH)) + if (obj->flags & COMPLETE) return 0; object_list_insert(obj, process_queue_end); process_queue_end = &(*process_queue_end)->next; - obj->flags |= TO_FETCH; prefetch(obj->sha1);