From 4b579aa1829eedc53bb8d2c05cd269d315c05de2 Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan@dynare.org> Date: Wed, 12 Feb 2020 15:43:01 +0100 Subject: [PATCH] simplify code --- src/gui_load_mod_file.m | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/gui_load_mod_file.m b/src/gui_load_mod_file.m index 875fe7a..b21ca4c 100644 --- a/src/gui_load_mod_file.m +++ b/src/gui_load_mod_file.m @@ -11,7 +11,7 @@ function gui_load_mod_file(hObject) % SPECIAL REQUIREMENTS % none -% Copyright (C) 2003-2019 Dynare Team +% Copyright (C) 2003-2020 Dynare Team % % This file is part of Dynare. % @@ -166,9 +166,7 @@ end if strcmp(answer,'No') return end - M_ = []; - oo_ = []; - options_ = []; + clear oo_ M_ options_ estim_params_ bayestopt_ estimation_info ex0_ ys0_ dataset_ dataset_info end %save globals @@ -190,7 +188,7 @@ end jObj.stop; jObj.setBusyText('Done'); - %restore globals + %restore GUI globals evalin('base', 'global dynare_gui_ project_info model_settings'); dynare_gui_ = glob_dynare_gui_; project_info = glob_project_info; -- GitLab