Skip to content

Commit

Permalink
Remove unused variable in builtin-fetch find_non_local_tags
Browse files Browse the repository at this point in the history
Apparently fetch_map is passed through, but is not actually used.

Signed-off-by: Shawn O. Pearce <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
spearce authored and gitster committed Mar 3, 2008
1 parent 2d3539e commit ff655a6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions builtin-fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit ff655a6

Please sign in to comment.