summaryrefslogtreecommitdiff
path: root/src/output.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-12 03:30:41 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-12 03:30:41 -0400
commitc8cd2c468e202f07af187590dcdc07935b6918f6 (patch)
tree397504912c30945f3bc607778d3471c1a41ccdd7 /src/output.cc
parentbb243e2c5e68a04d0da4c8c20a74b5b8acf7ecdb (diff)
downloadfork-ledger-c8cd2c468e202f07af187590dcdc07935b6918f6.tar.gz
fork-ledger-c8cd2c468e202f07af187590dcdc07935b6918f6.tar.bz2
fork-ledger-c8cd2c468e202f07af187590dcdc07935b6918f6.zip
Re-enabled some code, and removed a bunch of deadwood.
Diffstat (limited to 'src/output.cc')
-rw-r--r--src/output.cc34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/output.cc b/src/output.cc
index 752d6dd2..f7090e4e 100644
--- a/src/output.cc
+++ b/src/output.cc
@@ -146,40 +146,6 @@ void format_entries::operator()(xact_t& xact)
last_entry = xact.entry;
}
-void print_entry(std::ostream& out, const entry_base_t& entry_base,
- const string& prefix)
-{
- string print_format;
-
- if (dynamic_cast<const entry_t *>(&entry_base)) {
- print_format = (prefix + "%D %X%C%P\n" +
- prefix + " %-34A %12o\n%/" +
- prefix + " %-34A %12o\n");
- }
- else if (const auto_entry_t * entry =
- dynamic_cast<const auto_entry_t *>(&entry_base)) {
- out << "= " << entry->predicate.predicate.text() << '\n';
- print_format = prefix + " %-34A %12o\n";
- }
- else if (const period_entry_t * entry =
- dynamic_cast<const period_entry_t *>(&entry_base)) {
- out << "~ " << entry->period_string << '\n';
- print_format = prefix + " %-34A %12o\n";
- }
- else {
- assert(false);
- }
-
-#if 0
- format_entries formatter(out, print_format);
- walk_xacts(const_cast<xacts_list&>(entry_base.xacts), formatter);
- formatter.flush();
-
- clear_xact_xdata cleaner;
- walk_xacts(const_cast<xacts_list&>(entry_base.xacts), cleaner);
-#endif
-}
-
void format_accounts::flush()
{
std::ostream& out(report.output_stream);