git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] Remove unused variable in builtin-fetch find_non_local_tags
@ 2008-02-28  8:42 Shawn O. Pearce
  0 siblings, 0 replies; only message in thread
From: Shawn O. Pearce @ 2008-02-28  8:42 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Apparently fetch_map is passed through, but is not actually used.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
 builtin-fetch.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/builtin-fetch.c b/builtin-fetch.c
index ac335f2..f8b9542 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);
-- 
1.5.4.3.393.g5540

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-02-28  8:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-28  8:42 [PATCH 1/4] Remove unused variable in builtin-fetch find_non_local_tags Shawn O. Pearce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).