Skip to content

Commit

Permalink
[budget] Remove unused code
Browse files Browse the repository at this point in the history
Remove some priv attributes and code that were never used
  • Loading branch information
ianchi committed May 18, 2019
1 parent 51dda77 commit f6df367
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions gnucash/gnome/gnc-budget-view.c
Expand Up @@ -161,10 +161,6 @@ struct GncBudgetViewPrivate
GtkTreeViewColumn* total_col;
AccountFilterDialog *fd;

Account* income;
Account* expenses;
Account* assets;
Account* liabilities;
Account* rootAcct;

GtkCellRenderer *temp_cr;
Expand Down Expand Up @@ -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("");
}

Expand Down

0 comments on commit f6df367

Please sign in to comment.