Remove some unnecessary calls to xaccAccountInsertSplit() since the only way

the Split could have the Account pointer is if it had already been added to
   the Account.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14614 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Chris Shoemaker 2006-08-08 22:55:02 +00:00
parent 6628b183d7
commit 69ea9d29eb

View File

@ -218,8 +218,6 @@ static gboolean
add_transaction_local(sixtp_gdv2 *data, Transaction *trn)
{
gnc_commodity_table *table;
Split *spl;
int i;
table = gnc_book_get_commodity_table (data->book);
@ -229,13 +227,6 @@ add_transaction_local(sixtp_gdv2 *data, Transaction *trn)
xaccTransSetCurrency);
xaccTransScrubCurrency (trn);
for(i = 0, spl = xaccTransGetSplit(trn, i);
spl;
i++, spl = xaccTransGetSplit(trn, i))
{
xaccAccountInsertSplit(xaccSplitGetAccount(spl), spl);
}
xaccTransCommitEdit (trn);
data->counter.transactions_loaded++;