diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-19 21:53:02 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-19 22:24:24 -0500 |
commit | 4e30fcdf4094a0c450cbe1918c2e12dd19eb58f2 (patch) | |
tree | e4bce67522d52cd7be03544501191d761dce7799 /src/journal.cc | |
parent | 6e31328bd62d15e8da4238394abd8de65539cfa2 (diff) | |
download | fork-ledger-4e30fcdf4094a0c450cbe1918c2e12dd19eb58f2.tar.gz fork-ledger-4e30fcdf4094a0c450cbe1918c2e12dd19eb58f2.tar.bz2 fork-ledger-4e30fcdf4094a0c450cbe1918c2e12dd19eb58f2.zip |
Many improvements to Ledger's Python bindings
Diffstat (limited to 'src/journal.cc')
-rw-r--r-- | src/journal.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/journal.cc b/src/journal.cc index 2366ce30..6ebccd66 100644 --- a/src/journal.cc +++ b/src/journal.cc @@ -77,7 +77,6 @@ journal_t::~journal_t() checked_delete(xact); checked_delete(master); - commodity_pool.reset(); } void journal_t::initialize() @@ -85,21 +84,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) |