summaryrefslogtreecommitdiff
path: root/src/balance.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-01-30 16:19:31 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-01-30 16:19:31 -0400
commitf1257cbc3eaddc075dcb4f9ebff17e4ea416c4ed (patch)
treeee13fa7f7e046735b8a267bef0a3525ccb343b12 /src/balance.h
parent94004358705b8fbfbb3b18226804820b1dca565e (diff)
downloadfork-ledger-f1257cbc3eaddc075dcb4f9ebff17e4ea416c4ed.tar.gz
fork-ledger-f1257cbc3eaddc075dcb4f9ebff17e4ea416c4ed.tar.bz2
fork-ledger-f1257cbc3eaddc075dcb4f9ebff17e4ea416c4ed.zip
Removed all dependency on gdtoa.
Diffstat (limited to 'src/balance.h')
-rw-r--r--src/balance.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/balance.h b/src/balance.h
index 37641836..8f565e78 100644
--- a/src/balance.h
+++ b/src/balance.h
@@ -115,13 +115,11 @@ public:
if (! amt.is_realzero())
amounts.insert(amounts_map::value_type(&amt.commodity(), amt));
}
-#ifdef HAVE_GDTOA
balance_t(const double val) {
TRACE_CTOR(balance_t, "const double");
amounts.insert
(amounts_map::value_type(amount_t::current_pool->null_commodity, val));
}
-#endif
balance_t(const unsigned long val) {
TRACE_CTOR(balance_t, "const unsigned long");
amounts.insert
@@ -236,11 +234,9 @@ public:
virtual balance_t& operator*=(const amount_t& amt);
-#ifdef HAVE_GDTOA
balance_t& operator*=(const double val) {
return *this *= amount_t(val);
}
-#endif
balance_t& operator*=(const unsigned long val) {
return *this *= amount_t(val);
}
@@ -250,11 +246,9 @@ public:
virtual balance_t& operator/=(const amount_t& amt);
-#ifdef HAVE_GDTOA
balance_t& operator/=(const double val) {
return *this /= amount_t(val);
}
-#endif
balance_t& operator/=(const unsigned long val) {
return *this /= amount_t(val);
}