Remove unused 'got_alternates' variable.
The function fetch_alternates() is called only once from the main now. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Oct 10, 2005 at 23:22 UTC
dc1b5ea8781644203213e83b74cf3b432d88d067
1 file changed
+1
-5
http-fetch.c
+1
-5
@@ -529,8 +529,6 @@ void prefetch(unsigned char *sha1)
529
#endif
530
}
531
532
-static int got_alternates = 0;
533
-
532
static int fetch_index(struct alt_base *repo, unsigned char *sha1)
533
{
534
char *hex = sha1_to_hex(sha1);
@@ -622,8 +620,7 @@ static int fetch_alternates(char *base)
620
struct alt_base *tail = alt;
621
622
struct active_request_slot *slot;
625
- if (got_alternates)
626
- return 0;
623
+
624
data = xmalloc(4096);
625
buffer.size = 4095;
626
buffer.posn = 0;
@@ -721,7 +718,6 @@ static int fetch_alternates(char *base)
718
}
719
i = posn + 1;
720
}
724
- got_alternates = 1;
721
722
return ret;
723
}