From b9bc1986f3775e8d7ca5f9a8aadd688dd1a7167e Mon Sep 17 00:00:00 2001 From: Adrian Panella Date: Fri, 31 May 2019 19:15:12 -0500 Subject: [PATCH] [budget] remove unused code/variables --- gnucash/gnome/gnc-budget-view.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gnucash/gnome/gnc-budget-view.c b/gnucash/gnome/gnc-budget-view.c index 9846e5e3f8..381afac43c 100644 --- a/gnucash/gnome/gnc-budget-view.c +++ b/gnucash/gnome/gnc-budget-view.c @@ -215,7 +215,6 @@ static void gnc_budget_view_init(GncBudgetView *budget_view) { GncBudgetViewPrivate *priv; - Account* root; gint num_top_accounts; gint i; @@ -225,11 +224,8 @@ gnc_budget_view_init(GncBudgetView *budget_view) priv = GNC_BUDGET_VIEW_GET_PRIVATE(budget_view); - /* Keep track of the root and top level asset, liability, income and expense accounts */ - root = gnc_book_get_root_account(gnc_get_current_book()); - num_top_accounts = gnc_account_n_children(root); - - priv->rootAcct = root; + /* Keep track of the root account */ + priv->rootAcct = gnc_book_get_root_account(gnc_get_current_book()); LEAVE(""); }