Mercurial > hg > octave-jordi
diff libinterp/octave-value/ov-struct.cc @ 20951:072559bd31f2
maint: Eliminate useless statements after error().
* ov-base-diag.cc, ov-base-int.cc, ov-base-sparse.cc, ov-bool-mat.cc,
ov-cx-mat.cc, ov-fcn-handle.cc, ov-flt-cx-mat.cc, ov-flt-re-mat.cc, ov-perm.cc,
ov-re-mat.cc, ov-str-mat.cc, ov-struct.cc:
maint: Eliminate useless statements after error().
author | Rik <rik@octave.org> |
---|---|
date | Sun, 20 Dec 2015 07:42:17 -0800 (2015-12-20) |
parents | b17fda023ca6 |
children | 77f5591878bf |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-struct.cc +++ b/libinterp/octave-value/ov-struct.cc @@ -755,10 +755,7 @@ if (is) map = m; else - { - error ("load: failed to load structure"); - success = false; - } + error ("load: failed to load structure"); } else if (len == 0) map = octave_map (dv); @@ -877,10 +874,7 @@ if (is) map = m; else - { - error ("load: failed to load structure"); - success = false; - } + error ("load: failed to load structure"); } else if (len == 0) map = octave_map (dv); @@ -1403,10 +1397,7 @@ if (is) map = m; else - { - error ("load: failed to load structure"); - success = false; - } + error ("load: failed to load structure"); } else if (len == 0) map = octave_scalar_map (); @@ -1487,10 +1478,7 @@ if (is) map = m; else - { - error ("load: failed to load structure"); - success = false; - } + error ("load: failed to load structure"); } else if (len == 0) map = octave_scalar_map ();