mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[budget] Remove unused code
Remove some priv attributes and code that were never used
This commit is contained in:
@@ -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("");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user