Mercurial > octave
changeset 20855:6f9e010760a1
2015 code sprint: op-int.h: remove return after error.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 12 Dec 2015 07:51:16 -0800 |
parents | cdf08aacfd86 |
children | d5733bbf2418 |
files | libinterp/operators/op-int.h |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/operators/op-int.h Sat Dec 12 13:01:52 2015 -0200 +++ b/libinterp/operators/op-int.h Sat Dec 12 07:51:16 2015 -0800 @@ -628,10 +628,7 @@ CAST_UNOP_ARG (const octave_ ## TYPE ## _matrix&); \ \ if (v.ndims () > 2) \ - { \ - error ("transpose not defined for N-d objects"); \ - return octave_value (); \ - } \ + error ("transpose not defined for N-d objects"); \ else \ return octave_value (v.TYPE ## _array_value ().transpose ()); \ } \ @@ -652,7 +649,6 @@ DEFBINOPX (PFX ## _pow, T1 ## matrix, T2 ## matrix) \ { \ error ("can't do A ^ B for A and B both matrices"); \ - return octave_value (); \ } \ \ /* DEFBINOP_FN (PFX ## _ldiv, T1 ## matrix, T2 ## matrix, xleftdiv) */ \