summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-07 10:32:24 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-07 10:32:24 -0600
commitb1107f85ae07a85124e58a0e379ec2d9ab47d119 (patch)
treea44d0e10642cc8989b64c2ea89c4bbbf98eb3774 /src/value.cc
parent7bb83173dae617b8e754fff8e52390ff9664873b (diff)
downloadfork-ledger-b1107f85ae07a85124e58a0e379ec2d9ab47d119.tar.gz
fork-ledger-b1107f85ae07a85124e58a0e379ec2d9ab47d119.tar.bz2
fork-ledger-b1107f85ae07a85124e58a0e379ec2d9ab47d119.zip
Removed value_t::price and balance_t::price
Diffstat (limited to 'src/value.cc')
-rw-r--r--src/value.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/value.cc b/src/value.cc
index 2446c97a..de491e6c 100644
--- a/src/value.cc
+++ b/src/value.cc
@@ -1427,18 +1427,6 @@ value_t value_t::value(const optional<datetime_t>& moment,
return NULL_VALUE;
}
-value_t value_t::price() const
-{
- switch (type()) {
- case AMOUNT:
- return as_amount().price();
- case BALANCE:
- return as_balance().price();
- default:
- return *this;
- }
-}
-
value_t value_t::exchange_commodities(const std::string& commodities,
const bool add_prices,
const optional<datetime_t>& moment)