From add6f6ca2a711e3337f83bd15be5a03e22842591 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 18 Aug 2011 14:46:36 -0400 Subject: Removed unused variables --- src/amount.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/amount.cc') 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) -- cgit v1.2.3