summaryrefslogtreecommitdiff
path: root/src/balance.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/balance.cc')
-rw-r--r--src/balance.cc14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/balance.cc b/src/balance.cc
index 4fba7344..f87e8bbd 100644
--- a/src/balance.cc
+++ b/src/balance.cc
@@ -185,8 +185,8 @@ balance_t& balance_t::operator/=(const amount_t& amt)
}
optional<balance_t>
-balance_t::value(const optional<datetime_t>& moment,
- const optional<commodity_t&>& in_terms_of) const
+balance_t::value(const datetime_t& moment,
+ const commodity_t * in_terms_of) const
{
balance_t temp;
bool resolved = false;
@@ -202,16 +202,6 @@ balance_t::value(const optional<datetime_t>& moment,
return resolved ? temp : optional<balance_t>();
}
-balance_t balance_t::price() const
-{
- balance_t temp;
-
- foreach (const amounts_map::value_type& pair, amounts)
- temp += pair.second.price();
-
- return temp;
-}
-
optional<amount_t>
balance_t::commodity_amount(const optional<const commodity_t&>& commodity) const
{