mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[account.cpp] remove deprecated function
This commit is contained in:
parent
ebcb0bc478
commit
c5e7406c9f
@ -3900,27 +3900,6 @@ xaccAccountGetSplitList (const Account *acc)
|
||||
return GET_PRIVATE(acc)->splits;
|
||||
}
|
||||
|
||||
gint64
|
||||
xaccAccountCountSplits (const Account *acc, gboolean include_children)
|
||||
{
|
||||
gint64 nr, i;
|
||||
|
||||
PWARN ("xaccAccountCountSplits is deprecated and will be removed \
|
||||
in GnuCash 5.0. If testing for an empty account, use \
|
||||
xaccAccountGetSplitList(account) == NULL instead. To test descendants \
|
||||
as well, use gnc_account_and_descendants_empty.");
|
||||
g_return_val_if_fail(GNC_IS_ACCOUNT(acc), 0);
|
||||
|
||||
nr = g_list_length(xaccAccountGetSplitList(acc));
|
||||
if (include_children && (gnc_account_n_children(acc) != 0))
|
||||
{
|
||||
for (i=0; i < gnc_account_n_children(acc); i++)
|
||||
{
|
||||
nr += xaccAccountCountSplits(gnc_account_nth_child(acc, i), TRUE);
|
||||
}
|
||||
}
|
||||
return nr;
|
||||
}
|
||||
|
||||
gboolean gnc_account_and_descendants_empty (Account *acc)
|
||||
{
|
||||
|
@ -1032,18 +1032,6 @@ gboolean xaccAccountIsEquityType(GNCAccountType t);
|
||||
*/
|
||||
SplitList* xaccAccountGetSplitList (const Account *account);
|
||||
|
||||
|
||||
/** The xaccAccountCountSplits() routine returns the number of all
|
||||
* the splits in the account. xaccAccountCountSplits is O(N). if
|
||||
* testing for emptiness, use xaccAccountGetSplitList != NULL.
|
||||
|
||||
* @param acc the account for which to count the splits
|
||||
*
|
||||
* @param include_children also count splits in descendants (TRUE) or
|
||||
* for this account only (FALSE).
|
||||
*/
|
||||
gint64 xaccAccountCountSplits (const Account *acc, gboolean include_children);
|
||||
|
||||
/** The xaccAccountMoveAllSplits() routine reassigns each of the splits
|
||||
* in accfrom to accto. */
|
||||
void xaccAccountMoveAllSplits (Account *accfrom, Account *accto);
|
||||
|
Loading…
Reference in New Issue
Block a user