summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-03-05 23:26:21 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-03-05 23:26:21 -0400
commitfb9af0f1116992410b7b4aab352cc843be591587 (patch)
treeb03235b9cba14c78c2879f8a22cce8c24c0f00e6 /src
parent5167e6223b7a0e60a7e8db160902653fca9f2908 (diff)
downloadfork-ledger-fb9af0f1116992410b7b4aab352cc843be591587.tar.gz
fork-ledger-fb9af0f1116992410b7b4aab352cc843be591587.tar.bz2
fork-ledger-fb9af0f1116992410b7b4aab352cc843be591587.zip
Removed the --totals option
Diffstat (limited to 'src')
-rw-r--r--src/chain.cc6
-rw-r--r--src/global.cc3
-rw-r--r--src/report.cc1
-rw-r--r--src/report.h2
4 files changed, 2 insertions, 10 deletions
diff --git a/src/chain.cc b/src/chain.cc
index 9d74f744..04af1601 100644
--- a/src/chain.cc
+++ b/src/chain.cc
@@ -90,10 +90,8 @@ post_handler_ptr chain_post_handlers(report_t& report,
report, report.HANDLED(revalued_only)));
}
- // calc_posts computes the running total. When this appears will determine,
- // for example, whether filtered posts are included or excluded from the
- // running total.
- handler.reset(new calc_posts(handler, expr, report.HANDLED(totals)));
+ // calc_posts computes visited posting values and the running total
+ handler.reset(new calc_posts(handler, expr, only_preliminaries));
// unround_posts will unround the amounts in all postings
if (report.HANDLED(unround))
diff --git a/src/global.cc b/src/global.cc
index 0afe16d6..509ceb5e 100644
--- a/src/global.cc
+++ b/src/global.cc
@@ -413,9 +413,6 @@ void global_scope_t::normalize_report_options(const string& verb)
if (verb[0] != 'b' && verb[0] != 'r')
rep.HANDLER(base).on_only();
- if (verb[0] == 'b' || verb == "equity")
- rep.HANDLER(totals).on_only();
-
if (rep.HANDLED(period_) && ! rep.HANDLED(sort_all_))
rep.HANDLER(sort_xacts_).on_only();
diff --git a/src/report.cc b/src/report.cc
index 080ba433..0e203213 100644
--- a/src/report.cc
+++ b/src/report.cc
@@ -606,7 +606,6 @@ option_t<report_t> * report_t::lookup_option(const char * p)
OPT_CH(amount_);
else OPT(tail_);
else OPT(total_);
- else OPT(totals);
else OPT(total_data);
else OPT(truncate_);
else OPT(total_width_);
diff --git a/src/report.h b/src/report.h
index b39cd53a..2b973bca 100644
--- a/src/report.h
+++ b/src/report.h
@@ -613,8 +613,6 @@ public:
set_expr(args[0].to_string());
});
- OPTION(report_t, totals);
-
OPTION_(report_t, total_data, DO() { // -J
parent->HANDLER(format_).on_with(parent->HANDLER(plot_total_format_).value);
});