Simplified some code in commodity_pool_t

This commit is contained in:
John Wiegley 2012-03-09 05:06:40 -06:00
parent c813eafbd8
commit 9fd1fc1c22

View file

@ -67,14 +67,12 @@ commodity_t * commodity_pool_t::create(const string& symbol)
*commodity->qualified_symbol += "\"";
}
DEBUG("pool.commodities",
"Creating commodity '" << commodity->symbol() << "'");
DEBUG("pool.commodities", "Creating commodity '" << symbol << "'");
#if defined(DEBUG_ON)
std::pair<commodities_map::iterator, bool> result =
#endif
commodities.insert(commodities_map::value_type
(commodity->base_symbol(), commodity));
commodities.insert(commodities_map::value_type(symbol, commodity));
#if defined(DEBUG_ON)
assert(result.second);
#endif