poblano_toolbox
poblano_toolbox copied to clipboard
ncg: remove dead code
The following code cannot be reached and should be removed:
switch (params.Results.Update)
...
otherwise
error('Error: options.Update is not valid. Choices are {FR, PR, HS}');
This cannot be reached because there is a check of the inputs which will prevent the otherwise statement from being executed:
params.addParamValue('Update','PR',@(x) ismember(x,{'FR','PR','HS','SD'}));
NOTE: found using code coverage