mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
Cleanup.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3463 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
+6
-9
@@ -1008,16 +1008,14 @@ xaccGroupGetDepth (AccountGroup *grp)
|
||||
void
|
||||
xaccSplitsBeginStagedTransactionTraversals (GList *splits)
|
||||
{
|
||||
Transaction *trans;
|
||||
GList *lp;
|
||||
|
||||
if (splits == NULL) return;
|
||||
|
||||
for(lp = splits; lp; lp = lp->next)
|
||||
for (lp = splits; lp; lp = lp->next)
|
||||
{
|
||||
Split *s = lp->data;
|
||||
trans = s->parent;
|
||||
if (trans != NULL)
|
||||
Transaction *trans = s->parent;
|
||||
|
||||
if (trans)
|
||||
trans->marker = 0;
|
||||
}
|
||||
}
|
||||
@@ -1163,7 +1161,6 @@ xaccGroupVisitUnvisitedTransactions (AccountGroup *g,
|
||||
if (!visited_txns) return(FALSE);
|
||||
|
||||
list = xaccGroupGetSubAccounts (g);
|
||||
if (!list) return(TRUE);
|
||||
|
||||
for (node = list; node && keep_going; node = node->next)
|
||||
{
|
||||
@@ -1188,11 +1185,11 @@ xaccGroupForEachTransaction (AccountGroup *g,
|
||||
|
||||
if (!g) return(FALSE);
|
||||
if (!proc) return(FALSE);
|
||||
|
||||
|
||||
visited_txns = guid_hash_table_new();
|
||||
if (visited_txns)
|
||||
result = xaccGroupVisitUnvisitedTransactions(g, proc, data, visited_txns);
|
||||
|
||||
|
||||
/* cleanup */
|
||||
if (visited_txns)
|
||||
g_hash_table_destroy(visited_txns);
|
||||
|
||||
Reference in New Issue
Block a user