diff options
author | John Wiegley <johnw@newartisans.com> | 2008-09-20 13:48:36 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-09-20 13:48:36 -0400 |
commit | 1bbb6933af6c3052297ca647e31980b4dcce6960 (patch) | |
tree | da2e9d53094dd6b43d64aa39ef58d9d283fb3b1e /src/journal.cc | |
parent | 0e95974360464212de55803c4fc6c671502dbf99 (diff) | |
download | fork-ledger-1bbb6933af6c3052297ca647e31980b4dcce6960.tar.gz fork-ledger-1bbb6933af6c3052297ca647e31980b4dcce6960.tar.bz2 fork-ledger-1bbb6933af6c3052297ca647e31980b4dcce6960.zip |
Cleaned up the way that commodity pricing is handled.
Diffstat (limited to 'src/journal.cc')
-rw-r--r-- | src/journal.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/journal.cc b/src/journal.cc index c5a9e9fc..63b99e6f 100644 --- a/src/journal.cc +++ b/src/journal.cc @@ -101,14 +101,6 @@ bool journal_t::add_entry(entry_t * entry) entries.push_back(entry); - foreach (const xact_t * xact, entry->xacts) - if (xact->cost) { - assert(xact->amount); - xact->amount.commodity().add_price(datetime_t(*entry->date(), - time_duration_t(0, 0, 0)), - *xact->cost / xact->amount.number()); - } - return true; } |