diff options
author | John Wiegley <johnw@newartisans.com> | 2011-08-18 14:46:36 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2011-08-18 14:46:36 -0400 |
commit | add6f6ca2a711e3337f83bd15be5a03e22842591 (patch) | |
tree | 7d0735ef510319f1eda492c5d3876bc063eefde5 /src/amount.cc | |
parent | bed70c8670cd328447f61439832ffc7b3a7affb4 (diff) | |
download | fork-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.cc | 6 |
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) |