Skip to content

Commit b9cf14d

Browse files
artagnongitster
authored andcommitted
for-each-ref: remove unused variable
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5512ac5 commit b9cf14d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

builtin/for-each-ref.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static struct {
8989
*/
9090
static const char **used_atom;
9191
static cmp_type *used_atom_type;
92-
static int used_atom_cnt, sort_atom_limit, need_tagged, need_symref;
92+
static int used_atom_cnt, need_tagged, need_symref;
9393

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

10381038
if (!sort)
10391039
sort = default_sort();
1040-
sort_atom_limit = used_atom_cnt;
10411040

10421041
/* for warn_ambiguous_refs */
10431042
git_config(git_default_config, NULL);

0 commit comments

Comments
 (0)