mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Revert "[account.cpp] deprecate old dxacc* functions"
This reverts commit d290c3c45d
. These
functions are not deprecated after all.
This commit is contained in:
parent
134de3ab74
commit
aa0668f9e6
@ -2715,7 +2715,6 @@ DxaccAccountSetCurrency (Account * acc, gnc_commodity * currency)
|
||||
gnc_commodity *commodity;
|
||||
gnc_commodity_table *table;
|
||||
|
||||
PWARN ("this function is deprecated and will be removed in 5.x");
|
||||
if ((!acc) || (!currency)) return;
|
||||
g_value_init (&v, G_TYPE_STRING);
|
||||
g_value_set_string (&v, s);
|
||||
@ -3374,7 +3373,6 @@ DxaccAccountGetCurrency (const Account *acc)
|
||||
const char *s = NULL;
|
||||
gnc_commodity_table *table;
|
||||
|
||||
PWARN ("this function is deprecated and will be removed in 5.x");
|
||||
if (!acc) return NULL;
|
||||
qof_instance_get_path_kvp (QOF_INSTANCE(acc), &v, {"old-currency"});
|
||||
if (G_VALUE_HOLDS_STRING (&v))
|
||||
@ -4985,7 +4983,6 @@ xaccAccountGainsAccount (Account *acc, gnc_commodity *curr)
|
||||
void
|
||||
dxaccAccountSetPriceSrc(Account *acc, const char *src)
|
||||
{
|
||||
PWARN ("this function is deprecated and will be removed in 5.x");
|
||||
if (!acc) return;
|
||||
|
||||
if (xaccAccountIsPriced(acc))
|
||||
@ -5014,7 +5011,6 @@ const char*
|
||||
dxaccAccountGetPriceSrc(const Account *acc)
|
||||
{
|
||||
GValue v = G_VALUE_INIT;
|
||||
PWARN ("this function is deprecated and will be removed in 5.x");
|
||||
if (!acc) return NULL;
|
||||
|
||||
if (!xaccAccountIsPriced(acc)) return NULL;
|
||||
@ -5030,7 +5026,6 @@ void
|
||||
dxaccAccountSetQuoteTZ(Account *acc, const char *tz)
|
||||
{
|
||||
GValue v = G_VALUE_INIT;
|
||||
PWARN ("this function is deprecated and will be removed in 5.x");
|
||||
if (!acc) return;
|
||||
if (!xaccAccountIsPriced(acc)) return;
|
||||
xaccAccountBeginEdit(acc);
|
||||
@ -5048,7 +5043,6 @@ const char*
|
||||
dxaccAccountGetQuoteTZ(const Account *acc)
|
||||
{
|
||||
GValue v = G_VALUE_INIT;
|
||||
PWARN ("this function is deprecated and will be removed in 5.x");
|
||||
if (!acc) return NULL;
|
||||
if (!xaccAccountIsPriced(acc)) return NULL;
|
||||
qof_instance_get_path_kvp (QOF_INSTANCE (acc), &v, {"old-quote-tz"});
|
||||
|
Loading…
Reference in New Issue
Block a user