mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
6628b183d7
commit
69ea9d29eb
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user