Mercurial > jwe > octave
diff libinterp/octave-value/ov-str-mat.cc @ 21124:95f8c8cdbffe
maint: Eliminate 'bool success' variable where possible.
* ov-base-diag.cc (load_ascii): Remove success var, return true.
* ov-base-int.cc (load_ascii): Remove success var, return true.
* ov-base-sparse.cc (load_ascii): Remove success var, return true.
* ov-bool-mat.cc (load_ascii): Remove success var, return true.
* ov-cx-mat.cc (load_ascii): Remove success var, return true.
* ov-fcn-handle.cc (set_fcn): Remove success var, return true.
* ov-flt-cx-mat.cc (load_ascii): Remove success var, return true.
* ov-flt-re-mat.cc (load_ascii): Remove success var, return true.
* ov-perm.cc (load_ascii): Remove success var, return true.
* ov-re-mat.cc (load_ascii): Remove success var, return true.
* ov-str-mat.cc (load_ascii): Remove success var, return true.
* ov-struct.cc (load_ascii): Remove success var, return true.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 20 Jan 2016 21:54:36 -0800 |
parents | 499b851fbfae |
children | fcac5dbbf9ed |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-str-mat.cc Wed Jan 20 21:30:55 2016 -0800 +++ b/libinterp/octave-value/ov-str-mat.cc Wed Jan 20 21:54:36 2016 -0800 @@ -322,8 +322,6 @@ bool octave_char_matrix_str::load_ascii (std::istream& is) { - bool success = true; - string_vector keywords(3); keywords[0] = "ndims"; @@ -432,7 +430,7 @@ else panic_impossible (); - return success; + return true; } bool