summaryrefslogtreecommitdiff
path: root/src/amount.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/amount.cc
parentbed70c8670cd328447f61439832ffc7b3a7affb4 (diff)
downloadfork-ledger-add6f6ca2a711e3337f83bd15be5a03e22842591.tar.gz
fork-ledger-add6f6ca2a711e3337f83bd15be5a03e22842591.tar.bz2
fork-ledger-add6f6ca2a711e3337f83bd15be5a03e22842591.zip
Removed unused variables
Diffstat (limited to 'src/amount.cc')
-rw-r--r--src/amount.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/amount.cc b/src/amount.cc
index 1dc160cc..bc7e9918 100644
--- a/src/amount.cc
+++ b/src/amount.cc
@@ -1049,16 +1049,12 @@ bool amount_t::parse(std::istream& in, const parse_flags_t& flags)
// Create the commodity if has not already been seen, and update the
// precision if something greater was used for the quantity.
- bool newly_created = false;
-
if (symbol.empty()) {
commodity_ = NULL;
} else {
commodity_ = commodity_pool_t::current_pool->find(symbol);
- if (! commodity_) {
+ if (! commodity_)
commodity_ = commodity_pool_t::current_pool->create(symbol);
- newly_created = true;
- }
assert(commodity_);
if (details)