@matheusbsbs / matheus-bagliano / commits / ff655a69df
Fork 0

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 <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Shawn O. Pearce committed Mar 2, 2008 at 21:34 UTC ff655a69df524c71464968f823a4826f2d43d7c6
1 file changed +2 -3
builtin-fetch.c
+2 -3
@@ -452,8 +452,7 @@ static int add_existing(const char *refname, const unsigned char *sha1,
452 return 0;
453 }
454
455 -static struct ref *find_non_local_tags(struct transport *transport,
456 - struct ref *fetch_map)
455 +static struct ref *find_non_local_tags(struct transport *transport)
456 {
457 static struct path_list existing_refs = { NULL, 0, 0, 0 };
458 struct path_list new_refs = { NULL, 0, 0, 1 };
@@ -547,7 +546,7 @@ static int do_fetch(struct transport *transport,
546 /* if neither --no-tags nor --tags was specified, do automated tag
547 * following ... */
548 if (tags == TAGS_DEFAULT && autotags) {
550 - ref_map = find_non_local_tags(transport, fetch_map);
549 + ref_map = find_non_local_tags(transport);
550 if (ref_map) {
551 transport_set_option(transport, TRANS_OPT_DEPTH, "0");
552 fetch_refs(transport, ref_map);