summaryrefslogtreecommitdiff
path: root/builtin/for-each-ref.c
diff options
context:
space:
mode:
authorRamkumar Ramachandra <artagnon@gmail.com>2013-12-30 16:28:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-12-30 20:23:51 (GMT)
commitb9cf14d43b221fc2cce07b63d1dca408c17946e3 (patch)
tree8a60a709b385210a7510a129ac8fd05fafb666c6 /builtin/for-each-ref.c
parent5512ac5840c8bcaa487806cf402ff960091ab244 (diff)
downloadgit-b9cf14d43b221fc2cce07b63d1dca408c17946e3.zip
git-b9cf14d43b221fc2cce07b63d1dca408c17946e3.tar.gz
git-b9cf14d43b221fc2cce07b63d1dca408c17946e3.tar.bz2
for-each-ref: remove unused variable
No code ever used this symbol since the command was introduced at 9f613ddd (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>
Diffstat (limited to 'builtin/for-each-ref.c')
-rw-r--r--builtin/for-each-ref.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/for-each-ref.c b/builtin/for-each-ref.c
index d096051..7557aa2 100644
--- a/builtin/for-each-ref.c
+++ b/builtin/for-each-ref.c
@@ -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
@@ -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);