summaryrefslogtreecommitdiff
path: root/http-fetch.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-10-10 23:22:02 -0700
committerJunio C Hamano <junkio@cox.net>2005-10-10 23:22:02 -0700
commitdc1b5ea8781644203213e83b74cf3b432d88d067 (patch)
treee7bd906714ce1e477a90ea1ca1459f2e5aab5545 /http-fetch.c
parentb721e01f6efd84b04c6946553cd566f2707c964d (diff)
downloadgit-dc1b5ea8781644203213e83b74cf3b432d88d067.tar.gz
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>
Diffstat (limited to 'http-fetch.c')
-rw-r--r--http-fetch.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/http-fetch.c b/http-fetch.c
index 5821c9e5e9..e537591edb 100644
--- a/http-fetch.c
+++ b/http-fetch.c
@@ -529,8 +529,6 @@ void prefetch(unsigned char *sha1)
#endif
}
-static int got_alternates = 0;
-
static int fetch_index(struct alt_base *repo, unsigned char *sha1)
{
char *hex = sha1_to_hex(sha1);
@@ -622,8 +620,7 @@ static int fetch_alternates(char *base)
struct alt_base *tail = alt;
struct active_request_slot *slot;
- if (got_alternates)
- return 0;
+
data = xmalloc(4096);
buffer.size = 4095;
buffer.posn = 0;
@@ -721,7 +718,6 @@ static int fetch_alternates(char *base)
}
i = posn + 1;
}
- got_alternates = 1;
return ret;
}