From 3dc200983d5057a7760aeb9e864479c902d7e1d7 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 5 Nov 2009 02:23:49 -0500 Subject: Moved xdata clearing code into each type proper --- src/session.cc | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/session.cc') diff --git a/src/session.cc b/src/session.cc index 67f19ca9..8cbef1e6 100644 --- a/src/session.cc +++ b/src/session.cc @@ -224,25 +224,6 @@ void session_t::close_journal_files() amount_t::initialize(journal->commodity_pool); } -void session_t::clean_posts() -{ - journal_posts_iterator walker(*journal.get()); - pass_down_posts(post_handler_ptr(new clear_post_xdata), walker); -} - -void session_t::clean_posts(xact_t& xact) -{ - xact_posts_iterator walker(xact); - pass_down_posts(post_handler_ptr(new clear_post_xdata), walker); -} - -void session_t::clean_accounts() -{ - basic_accounts_iterator acct_walker(*journal->master); - pass_down_accounts(acct_handler_ptr(new clear_account_xdata), acct_walker); - journal->master->clear_xdata(); -} - option_t * session_t::lookup_option(const char * p) { switch (*p) { -- cgit v1.2.3