diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-21 19:22:55 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-21 19:22:55 -0400 |
commit | dc63429785fb677f5997a84ee7dd1dbc03f1e127 (patch) | |
tree | d5459a3c35e3afa1068301d4305476c68d0d501b | |
parent | 20a3ba0d2145c7f931b9e76e5ba81f917c5fbad7 (diff) | |
download | fork-ledger-dc63429785fb677f5997a84ee7dd1dbc03f1e127.tar.gz fork-ledger-dc63429785fb677f5997a84ee7dd1dbc03f1e127.tar.bz2 fork-ledger-dc63429785fb677f5997a84ee7dd1dbc03f1e127.zip |
Removed an unused class: format_entries
-rw-r--r-- | src/output.cc | 31 | ||||
-rw-r--r-- | src/output.h | 28 | ||||
-rw-r--r-- | src/report.cc | 3 | ||||
-rw-r--r-- | src/report.h | 2 |
4 files changed, 4 insertions, 60 deletions
diff --git a/src/output.cc b/src/output.cc index 48773aa0..d1214c33 100644 --- a/src/output.cc +++ b/src/output.cc @@ -179,37 +179,6 @@ void gather_statistics::operator()(xact_t& xact) } } -void format_entries::format_last_entry() -{ - bool first = true; - std::ostream& out(report.output_stream); - - foreach (xact_t * xact, last_entry->xacts) { - if (xact->has_xdata() && - xact->xdata().has_flags(XACT_EXT_TO_DISPLAY)) { - if (first) { - bind_scope_t bound_scope(report, *xact); - first_line_format.format(out, bound_scope); - first = false; - } else { - bind_scope_t bound_scope(report, *xact); - next_lines_format.format(out, bound_scope); - } - xact->xdata().add_flags(XACT_EXT_DISPLAYED); - } - } -} - -void format_entries::operator()(xact_t& xact) -{ - xact.xdata().add_flags(XACT_EXT_TO_DISPLAY); - - if (last_entry && xact.entry != last_entry) - format_last_entry(); - - last_entry = xact.entry; -} - void format_accounts::post_account(account_t& account) { bind_scope_t bound_scope(report, account); diff --git a/src/output.h b/src/output.h index 18718c7c..6eaef081 100644 --- a/src/output.h +++ b/src/output.h @@ -129,34 +129,6 @@ public: * * Long. */ -class format_entries : public format_xacts -{ - public: - format_entries(report_t& _report, const string& format) - : format_xacts(_report, format) { - TRACE_CTOR(format_entries, "report_t&, const string&"); - } - virtual ~format_entries() { - TRACE_DTOR(format_entries); - } - - virtual void format_last_entry(); - - virtual void flush() { - if (last_entry) { - format_last_entry(); - last_entry = NULL; - } - format_xacts::flush(); - } - virtual void operator()(xact_t& xact); -}; - -/** - * @brief Brief - * - * Long. - */ class format_accounts : public item_handler<account_t> { protected: diff --git a/src/report.cc b/src/report.cc index 47e8d8c4..95e5fa93 100644 --- a/src/report.cc +++ b/src/report.cc @@ -436,7 +436,8 @@ option_t<report_t> * report_t::lookup_option(const char * p) else OPT(quarterly); break; case 'r': - OPT(real); + OPT(raw); + else OPT(real); else OPT(register_format_); else OPT_(related); else OPT(related_all); diff --git a/src/report.h b/src/report.h index b76bc9f3..7897373e 100644 --- a/src/report.h +++ b/src/report.h @@ -487,6 +487,8 @@ public: parent->HANDLER(period_).on("quarterly"); }); + OPTION(report_t, raw); + OPTION_(report_t, real, DO() { // -R parent->HANDLER(limit_).on("real"); }); |