summaryrefslogtreecommitdiff
path: root/src/journal.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-04 20:55:40 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-04 20:57:14 -0400
commit3f960be96c47cc976ed3a4d9e477325b6a3fcfb7 (patch)
tree2d0b5a844bc47ff3bb90797114f89531b933c982 /src/journal.cc
parent066aef6090d5801e9e8452692c2478320dad48d3 (diff)
downloadfork-ledger-3f960be96c47cc976ed3a4d9e477325b6a3fcfb7.tar.gz
fork-ledger-3f960be96c47cc976ed3a4d9e477325b6a3fcfb7.tar.bz2
fork-ledger-3f960be96c47cc976ed3a4d9e477325b6a3fcfb7.zip
Removed all references to the old binary cache.
Diffstat (limited to 'src/journal.cc')
-rw-r--r--src/journal.cc15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/journal.cc b/src/journal.cc
index 403e7c81..37414fd5 100644
--- a/src/journal.cc
+++ b/src/journal.cc
@@ -44,22 +44,13 @@ journal_t::~journal_t()
// accounts they refer to, because all accounts are about to
// be deleted.
foreach (entry_t * entry, entries)
- if (! entry->has_flags(ITEM_IN_CACHE))
- checked_delete(entry);
- else
- entry->~entry_t();
+ checked_delete(entry);
foreach (auto_entry_t * entry, auto_entries)
- if (! entry->has_flags(ITEM_IN_CACHE))
- checked_delete(entry);
- else
- entry->~auto_entry_t();
+ checked_delete(entry);
foreach (period_entry_t * entry, period_entries)
- if (! entry->has_flags(ITEM_IN_CACHE))
- checked_delete(entry);
- else
- entry->~period_entry_t();
+ checked_delete(entry);
}
void journal_t::add_account(account_t * acct)