summaryrefslogtreecommitdiff
path: root/src/journal.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-09-20 13:48:36 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-09-20 13:48:36 -0400
commit1bbb6933af6c3052297ca647e31980b4dcce6960 (patch)
treeda2e9d53094dd6b43d64aa39ef58d9d283fb3b1e /src/journal.cc
parent0e95974360464212de55803c4fc6c671502dbf99 (diff)
downloadfork-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.cc8
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;
}