diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-05 02:23:49 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-05 02:27:39 -0500 |
commit | 3dc200983d5057a7760aeb9e864479c902d7e1d7 (patch) | |
tree | 6f754a113f97af3dd856cd7e507f91da9e9e0402 /src/session.cc | |
parent | 40a430139edd12d9f580f5616571bc3ed8709d73 (diff) | |
download | fork-ledger-3dc200983d5057a7760aeb9e864479c902d7e1d7.tar.gz fork-ledger-3dc200983d5057a7760aeb9e864479c902d7e1d7.tar.bz2 fork-ledger-3dc200983d5057a7760aeb9e864479c902d7e1d7.zip |
Moved xdata clearing code into each type proper
Diffstat (limited to 'src/session.cc')
-rw-r--r-- | src/session.cc | 19 |
1 files changed, 0 insertions, 19 deletions
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> * session_t::lookup_option(const char * p) { switch (*p) { |