diff options
author | John Wiegley <johnw@newartisans.com> | 2003-09-30 00:09:43 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2003-09-30 00:09:43 +0000 |
commit | 7bf86bc48a564ffffa46461c15ae2ab34b258fe8 (patch) | |
tree | a33b8365b8dc834413997170e2200f818f5fb894 /amount.cc | |
parent | 3667f06594a99dd6f0080747732e7eff639343b1 (diff) | |
download | fork-ledger-7bf86bc48a564ffffa46461c15ae2ab34b258fe8.tar.gz fork-ledger-7bf86bc48a564ffffa46461c15ae2ab34b258fe8.tar.bz2 fork-ledger-7bf86bc48a564ffffa46461c15ae2ab34b258fe8.zip |
*** empty log message ***
Diffstat (limited to 'amount.cc')
-rw-r--r-- | amount.cc | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -1,5 +1,4 @@ #include <sstream> -#include <cassert> #include <gmp.h> // GNU multi-precision library #include <pcre.h> // 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<commodities_iterator, bool> 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<commodities_iterator, bool> insert_result = - commodities.insert(commodities_entry(symbol, price_comm)); - assert(insert_result.second); } else { price_comm = (*item).second; |