diff libinterp/octave-value/ov-struct.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 f5b17eb2508b
children df7891224709
line wrap: on
line diff
--- a/libinterp/octave-value/ov-struct.cc	Wed Jan 20 21:30:55 2016 -0800
+++ b/libinterp/octave-value/ov-struct.cc	Wed Jan 20 21:54:36 2016 -0800
@@ -1356,7 +1356,6 @@
 bool
 octave_scalar_struct::load_ascii (std::istream& is)
 {
-  bool success = true;
   octave_idx_type len = 0;
 
   if (! extract_keyword (is, "length", len) || len < 0)
@@ -1391,7 +1390,7 @@
   else
     panic_impossible ();
 
-  return success;
+  return true;
 }
 
 bool