Skip to content
Snippets Groups Projects
Verified Commit 4b579aa1 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

simplify code

parent c67d05e7
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ function gui_load_mod_file(hObject) ...@@ -11,7 +11,7 @@ function gui_load_mod_file(hObject)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2003-2019 Dynare Team % Copyright (C) 2003-2020 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %
...@@ -166,9 +166,7 @@ end ...@@ -166,9 +166,7 @@ end
if strcmp(answer,'No') if strcmp(answer,'No')
return return
end end
M_ = []; clear oo_ M_ options_ estim_params_ bayestopt_ estimation_info ex0_ ys0_ dataset_ dataset_info
oo_ = [];
options_ = [];
end end
%save globals %save globals
...@@ -190,7 +188,7 @@ end ...@@ -190,7 +188,7 @@ end
jObj.stop; jObj.stop;
jObj.setBusyText('Done'); jObj.setBusyText('Done');
%restore globals %restore GUI globals
evalin('base', 'global dynare_gui_ project_info model_settings'); evalin('base', 'global dynare_gui_ project_info model_settings');
dynare_gui_ = glob_dynare_gui_; dynare_gui_ = glob_dynare_gui_;
project_info = glob_project_info; project_info = glob_project_info;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment