r13462 - gnucash/trunk/src/engine - Remove xaccAccountRemoveSplit,
and xaccAccountInsertSplit.
Chris Shoemaker
chris at cvs.gnucash.org
Fri Mar 3 19:11:45 EST 2006
Author: chris
Date: 2006-03-03 19:11:44 -0500 (Fri, 03 Mar 2006)
New Revision: 13462
Trac: http://svn.gnucash.org/trac/changeset/13462
Modified:
gnucash/trunk/src/engine/Account.c
gnucash/trunk/src/engine/Account.h
gnucash/trunk/src/engine/AccountP.h
Log:
Remove xaccAccountRemoveSplit, and xaccAccountInsertSplit.
(Actually, xaccAccountInsertSplit is #def'd to xaccSplitSetAccount().)
Accounts no longer manage their Split lists. The Account split lists
should only ever be modified from within xaccTransCommitEdit(). This
simplifies some of the operations on Accounts, since they can now be
expressed in terms of operations on Splits.
Also, the consolidation of two operations (RemoveSplit and InsertSplit)
into one operation (xaccSplitSetAccount) means that it's no longer
possible to orphan a Split.
Incidental:
Fix a leak of a KVP frame.
Don't recompute the account balance if we're shutting down.
More information about the gnucash-patches
mailing list