Mercurial > octave
diff libinterp/corefcn/ordschur.cc @ 20819:f428cbe7576f
eliminate unnecessary uses of nargin
* __dsearchn__.cc, betainc.cc, bsxfun.cc, data.cc, debug.cc, det.cc,
dot.cc, error.cc, file-io.cc, givens.cc, graphics.cc, hess.cc,
hex2num.cc, input.cc, inv.cc, mgorth.cc, ordschur.cc, pr-output.cc,
profiler.cc, rcond.cc, regexp.cc, sqrtm.cc, sub2ind.cc, sylvester.cc,
syscalls.cc, sysdep.cc, tsearch.cc, urlwrite.cc, utils.cc,
variables.cc:
Don't use nargin variable unless it is used more than once.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 07 Dec 2015 13:54:01 -0500 |
parents | b16bcd7a2a33 |
children | 35241c4b696c |
line wrap: on
line diff
--- a/libinterp/corefcn/ordschur.cc Mon Dec 07 13:26:03 2015 -0500 +++ b/libinterp/corefcn/ordschur.cc Mon Dec 07 13:54:01 2015 -0500 @@ -107,10 +107,9 @@ @seealso{schur}\n\ @end deftypefn") { - int nargin = args.length (); octave_value_list retval; - if (nargin != 3) + if (args.length () != 3) print_usage (); const Array<octave_idx_type> sel = args(2).octave_idx_type_vector_value ("ordschur: SELECT must be an array of integers");