summaryrefslogtreecommitdiff
path: root/amount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2003-09-30 00:09:43 +0000
committerJohn Wiegley <johnw@newartisans.com>2003-09-30 00:09:43 +0000
commit7bf86bc48a564ffffa46461c15ae2ab34b258fe8 (patch)
treea33b8365b8dc834413997170e2200f818f5fb894 /amount.cc
parent3667f06594a99dd6f0080747732e7eff639343b1 (diff)
downloadfork-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.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/amount.cc b/amount.cc
index b6c26270..bd3827d0 100644
--- a/amount.cc
+++ b/amount.cc
@@ -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;