Skip to content
Snippets Groups Projects
Commit 8a802d3a authored by leprob001's avatar leprob001
Browse files

Removed artoaDataOutput from global variables because it is never used.

parent a2c6af87
No related branches found
No related tags found
No related merge requests found
135 136
\ No newline at end of file \ No newline at end of file
...@@ -2,7 +2,7 @@ function [] = saveInterim(~, ~) ...@@ -2,7 +2,7 @@ function [] = saveInterim(~, ~)
%SAVEINTERIM Saves the current state of ARTOA4 to the file specified by dialog. %SAVEINTERIM Saves the current state of ARTOA4 to the file specified by dialog.
% %
global artoaWorkspace artoaDataInput artoaDataOutput; global artoaWorkspace artoaDataInput;
%% Get required variables %% Get required variables
folder = artoa.data.getMember(artoaDataInput, {'ini', 'directory', 'interim'}, pwd()); folder = artoa.data.getMember(artoaDataInput, {'ini', 'directory', 'interim'}, pwd());
...@@ -13,10 +13,10 @@ filter = artoa.data.getMember(artoaDataInput, {'ini', 'filemask', 'interim'}, '* ...@@ -13,10 +13,10 @@ filter = artoa.data.getMember(artoaDataInput, {'ini', 'filemask', 'interim'}, '*
filepath = fullfile(pathname, filename); filepath = fullfile(pathname, filename);
save(filepath, 'artoaWorkspace', 'artoaDataInput', 'artoaDataOutput'); save(filepath, 'artoaWorkspace', 'artoaDataInput');
return return
if isfile(filepath) if isfile(filepath)
save(filepath, 'artoaWorkspace', 'artoaDataInput', 'artoaDataOutput'); save(filepath, 'artoaWorkspace', 'artoaDataInput');
else else
warning([mfilename ': Save interim file failed because the selected file is not a file!']); warning([mfilename ': Save interim file failed because the selected file is not a file!']);
end end
......
...@@ -2,7 +2,7 @@ function [] = initializeArtoa4() ...@@ -2,7 +2,7 @@ function [] = initializeArtoa4()
%INITIALIZEARTOA4 Initializes variables required for artoa4 and creates the main window if required. %INITIALIZEARTOA4 Initializes variables required for artoa4 and creates the main window if required.
% %
global artoaDataInput artoaDataOutput artoaWorkspace artoaGui; global artoaDataInput artoaWorkspace artoaGui;
%% When the gui exists, focus it %% When the gui exists, focus it
if isfield(artoaGui, 'figures') && isfield(artoaGui.figures, 'main') if isfield(artoaGui, 'figures') && isfield(artoaGui.figures, 'main')
...@@ -12,7 +12,6 @@ end ...@@ -12,7 +12,6 @@ end
%% Initalize required variables %% Initalize required variables
artoaDataInput = struct(); artoaDataInput = struct();
artoaDataOutput = struct();
artoaWorkspace = struct(); artoaWorkspace = struct();
artoaWorkspace.hideDeletedDataPoints = false; artoaWorkspace.hideDeletedDataPoints = false;
artoaWorkspace.defaults = struct(); artoaWorkspace.defaults = struct();
......
...@@ -5,7 +5,7 @@ global artoaGui; ...@@ -5,7 +5,7 @@ global artoaGui;
if ~exist('artoaGui', 'var') || isempty(artoaGui) if ~exist('artoaGui', 'var') || isempty(artoaGui)
delete(gcf); delete(gcf);
clearvars -global artoaGui artoaDataInput artoaDataOutput artoaWorkspace; clearvars -global artoaGui artoaDataInput artoaWorkspace;
return; return;
end end
...@@ -24,7 +24,7 @@ try ...@@ -24,7 +24,7 @@ try
catch catch
end end
clearvars -global artoaGui artoaDataInput artoaDataOutput artoaWorkspace; clearvars -global artoaGui artoaDataInput artoaWorkspace;
end end
%% Start artoa4 %% Start artoa4
global artoaDataInput artoaDataOutput artoaWorkspace artoaGui;
artoa.controller.initializeArtoa4(); artoa.controller.initializeArtoa4();
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment