From 1bbb6933af6c3052297ca647e31980b4dcce6960 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 20 Sep 2008 13:48:36 -0400 Subject: Cleaned up the way that commodity pricing is handled. --- src/journal.cc | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/journal.cc') 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; } -- cgit v1.2.3