From: Sergey Vlasov Date: Wed, 21 Sep 2005 16:19:05 GMT Subject: [PATCH 6/8] fetch.c: Remove redundant test of TO_SCAN in process() Message-ID: <20050921161905.B5462E01C96@center4.mivlgu.local> In-Reply-To: <20050921161829.GA20944@master.mivlgu.local> If the SEEN flag was not set, the TO_SCAN flag cannot be set, therefore testing it is pointless. --- fetch.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) 6f33848a2f4aecd061d9499dfc88824235572695 diff --git a/fetch.c b/fetch.c --- a/fetch.c +++ b/fetch.c @@ -136,8 +136,6 @@ static int process(struct object *obj) if (has_sha1_file(obj->sha1)) { parse_object(obj->sha1); /* We already have it, so we should scan it now. */ - if (obj->flags & TO_SCAN) - return 0; obj->flags |= TO_SCAN; } else { if (obj->flags & COMPLETE)