[budget] Remove unused code

Remove some priv attributes and code that were never used
This commit is contained in:
Adrian Panella
2019-05-18 14:14:27 -05:00
parent 51dda77057
commit f6df367f50

View File

@@ -161,10 +161,6 @@ struct GncBudgetViewPrivate
GtkTreeViewColumn* total_col;
AccountFilterDialog *fd;
Account* income;
Account* expenses;
Account* assets;
Account* liabilities;
Account* rootAcct;
GtkCellRenderer *temp_cr;
@@ -235,29 +231,6 @@ gnc_budget_view_init(GncBudgetView *budget_view)
priv->rootAcct = root;
for (i = 0; i < num_top_accounts; ++i)
{
Account* acc = gnc_account_nth_child(root, i);
GNCAccountType type = xaccAccountGetType(acc);
if (type == ACCT_TYPE_ASSET)
{
priv->assets = acc;
}
else if (type == ACCT_TYPE_LIABILITY)
{
priv->liabilities = acc;
}
else if (type == ACCT_TYPE_INCOME)
{
priv->income = acc;
}
else if (type == ACCT_TYPE_EXPENSE)
{
priv->expenses = acc;
}
}
LEAVE("");
}