summaryrefslogtreecommitdiff
path: root/src/times.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2011-08-18 14:46:36 -0400
committerJohn Wiegley <johnw@newartisans.com>2011-08-18 14:46:36 -0400
commitadd6f6ca2a711e3337f83bd15be5a03e22842591 (patch)
tree7d0735ef510319f1eda492c5d3876bc063eefde5 /src/times.cc
parentbed70c8670cd328447f61439832ffc7b3a7affb4 (diff)
downloadfork-ledger-add6f6ca2a711e3337f83bd15be5a03e22842591.tar.gz
fork-ledger-add6f6ca2a711e3337f83bd15be5a03e22842591.tar.bz2
fork-ledger-add6f6ca2a711e3337f83bd15be5a03e22842591.zip
Removed unused variables
Diffstat (limited to 'src/times.cc')
-rw-r--r--src/times.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/times.cc b/src/times.cc
index 5249c11c..851da938 100644
--- a/src/times.cc
+++ b/src/times.cc
@@ -709,12 +709,9 @@ void date_parser_t::determine_when(date_parser_t::lexer_t::token_t& tok,
when += gregorian::years(amount * adjust);
break;
case lexer_t::token_t::TOK_QUARTER:
- case lexer_t::token_t::TOK_QUARTERS: {
- date_t temp =
- date_duration_t::find_nearest(today, date_duration_t::QUARTERS);
+ case lexer_t::token_t::TOK_QUARTERS:
when += gregorian::months(amount * 3 * adjust);
break;
- }
case lexer_t::token_t::TOK_MONTH:
case lexer_t::token_t::TOK_MONTHS:
when += gregorian::months(amount * adjust);