Mercurial > octave
diff libinterp/octave-value/ov-cell.cc @ 20818:cef0448a6ed2
eliminate unnecessary uses of nargin
* __glpk__.cc, chol.cc, dmperm.cc, qr.cc, symrcm.cc, ov-cell.cc,
ov-fcn-handle.cc, ov-fcn-inline.cc, ov-null-mat.cc, ov-struct.cc,
ov-type-conv.h, ov-usr-fcn.cc, oct-parse.in.yy, pt-misc.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:26:03 -0500 |
parents | 492738d32c60 |
children | 1142cf6abc0d |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-cell.cc Mon Dec 07 09:32:33 2015 -0800 +++ b/libinterp/octave-value/ov-cell.cc Mon Dec 07 13:26:03 2015 -0500 @@ -1382,9 +1382,7 @@ @seealso{cell2struct, fieldnames}\n\ @end deftypefn") { - int nargin = args.length (); - - if (nargin != 1) + if (args.length () != 1) print_usage (); const octave_map m = args(0).xmap_value ("struct2cell: argument S must be a structure");