Skip to content

Commit

Permalink
for-each-ref: remove unused variable
Browse files Browse the repository at this point in the history
No code ever used this symbol since the command was introduced at
9f613dd (Add git-for-each-ref: helper for language bindings,
2006-09-15).

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Ramkumar Ramachandra authored and Junio C Hamano committed Dec 30, 2013
1 parent 5512ac5 commit b9cf14d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions builtin/for-each-ref.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static struct {
*/
static const char **used_atom;
static cmp_type *used_atom_type;
static int used_atom_cnt, sort_atom_limit, need_tagged, need_symref;
static int used_atom_cnt, need_tagged, need_symref;

/*
* Used to parse format string and sort specifiers
Expand Down Expand Up @@ -1037,7 +1037,6 @@ int cmd_for_each_ref(int argc, const char **argv, const char *prefix)

if (!sort)
sort = default_sort();
sort_atom_limit = used_atom_cnt;

/* for warn_ambiguous_refs */
git_config(git_default_config, NULL);
Expand Down

0 comments on commit b9cf14d

Please sign in to comment.