mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[3/3][gnc-ui-util.c] Remove unused functions
These functions were used to (optionally) reverse amounts according to whether the feature GNC_FEATURE_BUDGET_UNREVERSED was set. They are now obsolete because code will now assume feature is set for all loaded datafiles.
This commit is contained in:
@@ -177,23 +177,6 @@ gnc_reverse_balance (const Account *account)
|
||||
return reverse_type[type];
|
||||
}
|
||||
|
||||
gboolean gnc_using_unreversed_budgets (QofBook* book)
|
||||
{
|
||||
return gnc_features_check_used (book, GNC_FEATURE_BUDGET_UNREVERSED);
|
||||
}
|
||||
|
||||
/* similar to gnc_reverse_balance but also accepts a gboolean
|
||||
unreversed which specifies the reversal strategy - FALSE = pre-4.x
|
||||
always-assume-credit-accounts, TRUE = all amounts unreversed */
|
||||
gboolean
|
||||
gnc_reverse_budget_balance (const Account *account, gboolean unreversed)
|
||||
{
|
||||
if (unreversed == gnc_using_unreversed_budgets(gnc_account_get_book(account)))
|
||||
return gnc_reverse_balance (account);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
gboolean gnc_using_equity_type_opening_balance_account (QofBook* book)
|
||||
{
|
||||
return gnc_features_check_used (book, GNC_FEATURE_EQUITY_TYPE_OPENING_BALANCE);
|
||||
|
||||
Reference in New Issue
Block a user