From c8cd2c468e202f07af187590dcdc07935b6918f6 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 12 Feb 2009 03:30:41 -0400 Subject: Re-enabled some code, and removed a bunch of deadwood. --- src/output.cc | 34 ---------------------------------- 1 file changed, 34 deletions(-) (limited to 'src/output.cc') 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(&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(&entry_base)) { - out << "= " << entry->predicate.predicate.text() << '\n'; - print_format = prefix + " %-34A %12o\n"; - } - else if (const period_entry_t * entry = - dynamic_cast(&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(entry_base.xacts), formatter); - formatter.flush(); - - clear_xact_xdata cleaner; - walk_xacts(const_cast(entry_base.xacts), cleaner); -#endif -} - void format_accounts::flush() { std::ostream& out(report.output_stream); -- cgit v1.2.3