From f5ead6d71de4a79fe812d0e9f169fbe633fd05b1 Mon Sep 17 00:00:00 2001 From: Dave Peticolas Date: Mon, 12 Feb 2001 12:58:09 +0000 Subject: [PATCH] Remove superfluous code. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3641 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/FileDialog.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/FileDialog.c b/src/FileDialog.c index ea4c0f6764..04f61a7242 100644 --- a/src/FileDialog.c +++ b/src/FileDialog.c @@ -263,7 +263,6 @@ static void gncPostFileOpen (const char * filename) { GNCBook *new_book; - AccountGroup *old_group; gboolean uh_oh = FALSE; AccountGroup *new_group; char * newfile; @@ -288,11 +287,9 @@ gncPostFileOpen (const char * filename) /* -------------- BEGIN CORE SESSION CODE ------------- */ /* -- this code is almost identical in FileOpen and FileSaveAs -- */ - old_group = gnc_book_get_group (gncGetCurrentBook ()); - gnc_book_destroy (current_book); current_book = NULL; - + /* load the accounts from the users datafile */ /* but first, check to make sure we've got a book going. */ new_book = gnc_book_new ();