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 /src/output.cc | |
parent | 20a3ba0d2145c7f931b9e76e5ba81f917c5fbad7 (diff) | |
download | fork-ledger-dc63429785fb677f5997a84ee7dd1dbc03f1e127.tar.gz fork-ledger-dc63429785fb677f5997a84ee7dd1dbc03f1e127.tar.bz2 fork-ledger-dc63429785fb677f5997a84ee7dd1dbc03f1e127.zip |
Removed an unused class: format_entries
Diffstat (limited to 'src/output.cc')
-rw-r--r-- | src/output.cc | 31 |
1 files changed, 0 insertions, 31 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); |