From 7bf86bc48a564ffffa46461c15ae2ab34b258fe8 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 30 Sep 2003 00:09:43 +0000 Subject: *** empty log message *** --- amount.cc | 7 ------- 1 file changed, 7 deletions(-) (limited to 'amount.cc') diff --git a/amount.cc b/amount.cc index b6c26270..bd3827d0 100644 --- a/amount.cc +++ b/amount.cc @@ -1,5 +1,4 @@ #include -#include #include // GNU multi-precision library #include // Perl regular expression library @@ -337,9 +336,6 @@ amount& gmp_amount::operator=(const char * num) commodities_iterator item = commodities.find(symbol.c_str()); if (item == commodities.end()) { quantity_comm = new commodity(symbol, prefix, separate, precision); - std::pair insert_result = - commodities.insert(commodities_entry(symbol, quantity_comm)); - assert(insert_result.second); } else { quantity_comm = (*item).second; @@ -396,9 +392,6 @@ amount& gmp_amount::operator=(const char * num) commodities_iterator item = commodities.find(symbol.c_str()); if (item == commodities.end()) { price_comm = new commodity(symbol, prefix, separate, precision); - std::pair insert_result = - commodities.insert(commodities_entry(symbol, price_comm)); - assert(insert_result.second); } else { price_comm = (*item).second; -- cgit v1.2.3