From ac604d8902a0489e007965aeb7a82f1a441ecd40 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 20 Aug 2004 18:46:52 -0400 Subject: minor changes --- valexpr.cc | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'valexpr.cc') diff --git a/valexpr.cc b/valexpr.cc index d4c31085..fb5e632e 100644 --- a/valexpr.cc +++ b/valexpr.cc @@ -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; -- cgit v1.2.3