Mercurial > octave-nkf
diff libinterp/corefcn/graphics.cc @ 19777:67f2c76f9f4d
Remove unnecessary checking of error_state after is_string validation.
* data.cc (#NATIVE_REDUCTION, Fcumsum, Fprod, Fsum): Remove if (error_state)
check.
* debug.cc (Fdbstep): Remove if (error_state) check.
* dlmread.cc (Fdlmread): Remove if (error_state) check.
* graphics.cc (Fwaitfor): Remove if (error_state) check.
* lu.cc (Flu): Remove if (error_state) check.
* utils.cc (Ferrno): Remove if (error_state) check.
* variables.cc (is_valid_function): Remove if (error_state) check.
* fftw.cc (Ffftw): Remove if (error_state) check.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 17 Feb 2015 17:34:48 -0800 |
parents | 4197fc428c7d |
children | ca7599ae464d |
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc Tue Feb 17 16:24:30 2015 -0800 +++ b/libinterp/corefcn/graphics.cc Tue Feb 17 17:34:48 2015 -0800 @@ -11635,13 +11635,10 @@ { caseless_str s = args(2).string_value (); - if (! error_state) - { - if (s.compare ("timeout")) - timeout_index = 2; - else - max_arg_index++; - } + if (s.compare ("timeout")) + timeout_index = 2; + else + max_arg_index++; } else max_arg_index++;