summaryrefslogtreecommitdiff
path: root/src/report.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-10 01:28:20 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-10 01:28:57 -0500
commita5f0b6e5dc0aeb8cfbb264631732c224107793f8 (patch)
tree87dd236164d2b76a2b95ab701a6989b181473349 /src/report.cc
parent115da191214638299eced2564fa4bd5c6c03c63f (diff)
downloadfork-ledger-a5f0b6e5dc0aeb8cfbb264631732c224107793f8.tar.gz
fork-ledger-a5f0b6e5dc0aeb8cfbb264631732c224107793f8.tar.bz2
fork-ledger-a5f0b6e5dc0aeb8cfbb264631732c224107793f8.zip
account_amount() is now account().amount
Diffstat (limited to 'src/report.cc')
-rw-r--r--src/report.cc27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/report.cc b/src/report.cc
index 24f0c054..e05b4bc1 100644
--- a/src/report.cc
+++ b/src/report.cc
@@ -315,31 +315,6 @@ value_t report_t::fn_price(call_scope_t& scope)
return args.value_at(0).price();
}
-value_t report_t::fn_account_total(call_scope_t& args)
-{
- account_t * acct = NULL;
- string name;
- if (args[0].is_string()) {
- name = args[0].as_string();
- acct = session.journal->find_account(name, false);
- }
- else if (args[0].is_mask()) {
- name = args[0].as_mask().str();
- acct = session.journal->find_account_re(name);
- }
- else {
- throw_(std::runtime_error,
- _("Expected string or mask for argument 1, but received %1")
- << args[0].label());
- }
-
- if (! acct)
- throw_(std::runtime_error,
- _("Could not find an account matching ") << name);
-
- return acct->amount();
-}
-
value_t report_t::fn_lot_date(call_scope_t& scope)
{
interactive_t args(scope, "v");
@@ -739,8 +714,6 @@ expr_t::ptr_op_t report_t::lookup(const symbol_t::kind_t kind,
return MAKE_FUNCTOR(report_t::fn_ansify_if);
else if (is_eq(p, "abs"))
return MAKE_FUNCTOR(report_t::fn_abs);
- else if (is_eq(p, "account_total"))
- return MAKE_FUNCTOR(report_t::fn_account_total);
break;
case 'b':