{"thread":{"id":"12358","subject":"[PATCH 1/4] Remove unused variable in builtin-fetch find_non_local_tags","startedAt":"2008-02-28T08:42:31Z","lastAt":"2008-02-28T08:42:31Z","messageCount":1,"participants":["Shawn O. Pearce"],"isPatch":true,"patchVersion":1,"patchTotal":4},"messages":[{"id":"70222","messageId":"20080228084231.GA16870@spearce.org","threadId":"12358","inReplyTo":null,"subject":"[PATCH 1/4] Remove unused variable in builtin-fetch find_non_local_tags","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2008-02-28T08:42:31Z","receivedAt":"2008-02-28T08:42:31Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Apparently fetch_map is passed through, but is not actually used.\n\nSigned-off-by: Shawn O. Pearce <spearce@spearce.org>\n---\n builtin-fetch.c |    5 ++---\n 1 files changed, 2 insertions(+), 3 deletions(-)\n\ndiff --git a/builtin-fetch.c b/builtin-fetch.c\nindex ac335f2..f8b9542 100644\n--- a/builtin-fetch.c\n+++ b/builtin-fetch.c\n@@ -452,8 +452,7 @@ static int add_existing(const char *refname, const unsigned char *sha1,\n \treturn 0;\n }\n \n-static struct ref *find_non_local_tags(struct transport *transport,\n-\t\t\t\t       struct ref *fetch_map)\n+static struct ref *find_non_local_tags(struct transport *transport)\n {\n \tstatic struct path_list existing_refs = { NULL, 0, 0, 0 };\n \tstruct path_list new_refs = { NULL, 0, 0, 1 };\n@@ -547,7 +546,7 @@ static int do_fetch(struct transport *transport,\n \t/* if neither --no-tags nor --tags was specified, do automated tag\n \t * following ... */\n \tif (tags == TAGS_DEFAULT && autotags) {\n-\t\tref_map = find_non_local_tags(transport, fetch_map);\n+\t\tref_map = find_non_local_tags(transport);\n \t\tif (ref_map) {\n \t\t\ttransport_set_option(transport, TRANS_OPT_DEPTH, \"0\");\n \t\t\tfetch_refs(transport, ref_map);\n-- \n1.5.4.3.393.g5540\n"}]}