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
\ No newline at end of file
136
\ No newline at end of file
......@@ -2,7 +2,7 @@ function [] = saveInterim(~, ~)
%SAVEINTERIM Saves the current state of ARTOA4 to the file specified by dialog.
%
global artoaWorkspace artoaDataInput artoaDataOutput;
global artoaWorkspace artoaDataInput;
%% Get required variables
folder = artoa.data.getMember(artoaDataInput, {'ini', 'directory', 'interim'}, pwd());
......@@ -13,10 +13,10 @@ filter = artoa.data.getMember(artoaDataInput, {'ini', 'filemask', 'interim'}, '*
filepath = fullfile(pathname, filename);
save(filepath, 'artoaWorkspace', 'artoaDataInput', 'artoaDataOutput');
save(filepath, 'artoaWorkspace', 'artoaDataInput');
return
if isfile(filepath)
save(filepath, 'artoaWorkspace', 'artoaDataInput', 'artoaDataOutput');
save(filepath, 'artoaWorkspace', 'artoaDataInput');
else
warning([mfilename ': Save interim file failed because the selected file is not a file!']);
end
......
......@@ -2,7 +2,7 @@ function [] = initializeArtoa4()
%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
if isfield(artoaGui, 'figures') && isfield(artoaGui.figures, 'main')
......@@ -12,7 +12,6 @@ end
%% Initalize required variables
artoaDataInput = struct();
artoaDataOutput = struct();
artoaWorkspace = struct();
artoaWorkspace.hideDeletedDataPoints = false;
artoaWorkspace.defaults = struct();
......
......@@ -5,7 +5,7 @@ global artoaGui;
if ~exist('artoaGui', 'var') || isempty(artoaGui)
delete(gcf);
clearvars -global artoaGui artoaDataInput artoaDataOutput artoaWorkspace;
clearvars -global artoaGui artoaDataInput artoaWorkspace;
return;
end
......@@ -24,7 +24,7 @@ try
catch
end
clearvars -global artoaGui artoaDataInput artoaDataOutput artoaWorkspace;
clearvars -global artoaGui artoaDataInput artoaWorkspace;
end
%% Start artoa4
global artoaDataInput artoaDataOutput artoaWorkspace artoaGui;
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