Skip to content

Commit 43b8bba

Browse files
Eric Wonggitster
authored andcommitted
http-walker: remove unused parameter from fetch_object
This parameter has not been used since commit 1d389ab ("Add support for parallel HTTP transfers") back in 2005 Signed-off-by: Eric Wong <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 05219a1 commit 43b8bba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

http-walker.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ static void abort_object_request(struct object_request *obj_req)
447447
release_object_request(obj_req);
448448
}
449449

450-
static int fetch_object(struct walker *walker, struct alt_base *repo, unsigned char *sha1)
450+
static int fetch_object(struct walker *walker, unsigned char *sha1)
451451
{
452452
char *hex = sha1_to_hex(sha1);
453453
int ret = 0;
@@ -518,7 +518,7 @@ static int fetch(struct walker *walker, unsigned char *sha1)
518518
struct walker_data *data = walker->data;
519519
struct alt_base *altbase = data->alt;
520520

521-
if (!fetch_object(walker, altbase, sha1))
521+
if (!fetch_object(walker, sha1))
522522
return 0;
523523
while (altbase) {
524524
if (!http_fetch_pack(walker, altbase, sha1))

0 commit comments

Comments
 (0)