diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-15 16:26:26 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-15 16:26:26 -0400 |
commit | fcd7f4f73b50ec02ec1f501a8ebde502c6736850 (patch) | |
tree | a3af572793c1a14d0e28a8a9581011beb4017b12 /src/account.cc | |
parent | 48d985aacc5106592aa191c707315ee24917aacb (diff) | |
download | fork-ledger-fcd7f4f73b50ec02ec1f501a8ebde502c6736850.tar.gz fork-ledger-fcd7f4f73b50ec02ec1f501a8ebde502c6736850.tar.bz2 fork-ledger-fcd7f4f73b50ec02ec1f501a8ebde502c6736850.zip |
Removed "total_cost" valexpr, and value_t::cost
Since cost reports are now calculated by setting the amount_ expression,
there is no need to track a separate "total cost" entity.
Diffstat (limited to 'src/account.cc')
-rw-r--r-- | src/account.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/account.cc b/src/account.cc index 339d1ef4..104d0cee 100644 --- a/src/account.cc +++ b/src/account.cc @@ -161,11 +161,6 @@ namespace { return account.xdata_->total; } - value_t get_total_cost(account_t& account) { - assert(account.xdata_); - return account.xdata_->total.cost(); - } - value_t get_amount(account_t& account) { assert(account.xdata_); return account.xdata_->value; @@ -216,8 +211,6 @@ expr_t::ptr_op_t account_t::lookup(const string& name) case 't': if (name == "total") return WRAP_FUNCTOR(get_wrapper<&get_total>); - else if (name == "total_cost") - return WRAP_FUNCTOR(get_wrapper<&get_total_cost>); break; } |