summaryrefslogtreecommitdiff
path: root/src/journal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/journal.cc')
-rw-r--r--src/journal.cc21
1 files changed, 2 insertions, 19 deletions
diff --git a/src/journal.cc b/src/journal.cc
index 2366ce30..5aa2e7f7 100644
--- a/src/journal.cc
+++ b/src/journal.cc
@@ -64,9 +64,8 @@ journal_t::~journal_t()
{
TRACE_DTOR(journal_t);
- // Don't bother unhooking each xact's posts from the
- // accounts they refer to, because all accounts are about to
- // be deleted.
+ // Don't bother unhooking each xact's posts from the accounts they refer to,
+ // because all accounts are about to be deleted.
foreach (xact_t * xact, xacts)
checked_delete(xact);
@@ -77,7 +76,6 @@ journal_t::~journal_t()
checked_delete(xact);
checked_delete(master);
- commodity_pool.reset();
}
void journal_t::initialize()
@@ -85,21 +83,6 @@ void journal_t::initialize()
master = new account_t;
bucket = NULL;
was_loaded = false;
-
- commodity_pool.reset(new commodity_pool_t);
-
- // Add time commodity conversions, so that timelog's may be parsed
- // in terms of seconds, but reported as minutes or hours.
- if (commodity_t * commodity = commodity_pool->create("s"))
- commodity->add_flags(COMMODITY_BUILTIN | COMMODITY_NOMARKET);
- else
- assert(false);
-
- // Add a "percentile" commodity
- if (commodity_t * commodity = commodity_pool->create("%"))
- commodity->add_flags(COMMODITY_BUILTIN | COMMODITY_NOMARKET);
- else
- assert(false);
}
void journal_t::add_account(account_t * acct)