[account.cpp] remove deprecated function

This commit is contained in:
Christopher Lam 2021-01-01 20:33:31 +08:00
parent ebcb0bc478
commit c5e7406c9f
2 changed files with 0 additions and 33 deletions

View File

@ -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)
{

View File

@ -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);