All pastes #122752 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-08-08 21:53 UTC
rendered paste body
Index: src/backend/file/io-gncxml-v2.c
===================================================================
--- src/backend/file/io-gncxml-v2.c     (revision 14610)
+++ src/backend/file/io-gncxml-v2.c     (working copy)
@@ -218,8 +218,6 @@
 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 @@
                                    xaccTransSetCurrency);

     xaccTransScrubCurrency (trn);
-
-    for(i = 0, spl = xaccTransGetSplit(trn, i);
-        spl;
-        i++, spl = xaccTransGetSplit(trn, i))
-    {
-        xaccAccountInsertSplit(xaccSplitGetAccount(spl), spl);
-    }
     xaccTransCommitEdit (trn);