http-walker: remove unused parameter from fetch_object
authorEric Wong <e@80x24.org>
Mon, 11 Jul 2016 20:51:29 +0000 (20:51 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Jul 2016 22:17:41 +0000 (15:17 -0700)
This parameter has not been used since commit 1d389ab65dc6
("Add support for parallel HTTP transfers") back in 2005

Signed-off-by: Eric Wong <e@80x24.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http-walker.c
index 2c721f0c30d786e043dec819dc421788311c7e4b..9f28523a07eee035b022519b1101cbff3c6c4743 100644 (file)
@@ -447,7 +447,7 @@ static void abort_object_request(struct object_request *obj_req)
        release_object_request(obj_req);
 }
 
-static int fetch_object(struct walker *walker, struct alt_base *repo, unsigned char *sha1)
+static int fetch_object(struct walker *walker, unsigned char *sha1)
 {
        char *hex = sha1_to_hex(sha1);
        int ret = 0;
@@ -518,7 +518,7 @@ static int fetch(struct walker *walker, unsigned char *sha1)
        struct walker_data *data = walker->data;
        struct alt_base *altbase = data->alt;
 
-       if (!fetch_object(walker, altbase, sha1))
+       if (!fetch_object(walker, sha1))
                return 0;
        while (altbase) {
                if (!http_fetch_pack(walker, altbase, sha1))