From: Shawn O. Pearce Date: Mon, 3 Mar 2008 02:34:36 +0000 (-0500) Subject: Remove unused variable in builtin-fetch find_non_local_tags X-Git-Tag: v1.5.5-rc0~44^2~10 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ff655a69df524c71464968f823a4826f2d43d7c6;p=git.git Remove unused variable in builtin-fetch find_non_local_tags Apparently fetch_map is passed through, but is not actually used. Signed-off-by: Shawn O. Pearce Signed-off-by: Junio C Hamano --- diff --git a/builtin-fetch.c b/builtin-fetch.c index ac335f20f..f8b9542ba 100644 --- a/builtin-fetch.c +++ b/builtin-fetch.c @@ -452,8 +452,7 @@ static int add_existing(const char *refname, const unsigned char *sha1, return 0; } -static struct ref *find_non_local_tags(struct transport *transport, - struct ref *fetch_map) +static struct ref *find_non_local_tags(struct transport *transport) { static struct path_list existing_refs = { NULL, 0, 0, 0 }; struct path_list new_refs = { NULL, 0, 0, 1 }; @@ -547,7 +546,7 @@ static int do_fetch(struct transport *transport, /* if neither --no-tags nor --tags was specified, do automated tag * following ... */ if (tags == TAGS_DEFAULT && autotags) { - ref_map = find_non_local_tags(transport, fetch_map); + ref_map = find_non_local_tags(transport); if (ref_map) { transport_set_option(transport, TRANS_OPT_DEPTH, "0"); fetch_refs(transport, ref_map);