diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-20 18:46:52 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-20 18:46:52 -0400 |
commit | ac604d8902a0489e007965aeb7a82f1a441ecd40 (patch) | |
tree | f0b4529e0ffac063204b239858904462b970b008 /valexpr.cc | |
parent | cd7938bfda5431d06503543e254a3bbfefc4227b (diff) | |
download | fork-ledger-ac604d8902a0489e007965aeb7a82f1a441ecd40.tar.gz fork-ledger-ac604d8902a0489e007965aeb7a82f1a441ecd40.tar.bz2 fork-ledger-ac604d8902a0489e007965aeb7a82f1a441ecd40.zip |
minor changes
Diffstat (limited to 'valexpr.cc')
-rw-r--r-- | valexpr.cc | 25 |
1 files changed, 0 insertions, 25 deletions
@@ -89,28 +89,6 @@ void value_expr_t::compute(value_t& result, const details_t& details, result = details.account->value.cost; break; - case BALANCE: - if (details.xact) { - result = details.xact->total.quantity; - result -= details.xact->amount; - } - else if (details.account) { - result = details.account->total.quantity; - result -= details.account->value.quantity; - } - break; - - case COST_BALANCE: - if (details.xact) { - result = details.xact->total.cost; - result -= details.xact->cost; - } - else if (details.account) { - result = details.account->total.cost; - result -= details.account->value.cost; - } - break; - case TOTAL: if (details.xact) result = details.xact->total.quantity; @@ -411,7 +389,6 @@ value_expr_t * parse_value_term(std::istream& in) case 'R': node.reset(new value_expr_t(value_expr_t::REAL)); break; case 'n': node.reset(new value_expr_t(value_expr_t::INDEX)); break; case 'l': node.reset(new value_expr_t(value_expr_t::DEPTH)); break; - case 'B': node.reset(new value_expr_t(value_expr_t::BALANCE)); break; case 'O': node.reset(new value_expr_t(value_expr_t::TOTAL)); break; case 'C': node.reset(new value_expr_t(value_expr_t::COST_TOTAL)); break; @@ -739,8 +716,6 @@ void dump_value_expr(std::ostream& out, const value_expr_t * node) case value_expr_t::REAL: out << "REAL"; break; case value_expr_t::INDEX: out << "INDEX"; break; case value_expr_t::DEPTH: out << "DEPTH"; break; - case value_expr_t::BALANCE: out << "BALANCE"; break; - case value_expr_t::COST_BALANCE: out << "COST_BALANCE"; break; case value_expr_t::TOTAL: out << "TOTAL"; break; case value_expr_t::COST_TOTAL: out << "COST_TOTAL"; break; |