Mercurial > octave
diff libinterp/corefcn/file-io.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 | d9ca869ca124 |
children | f2cd811f0f9e |
line wrap: on
line diff
--- a/libinterp/corefcn/file-io.cc Mon Dec 07 13:26:03 2015 -0500 +++ b/libinterp/corefcn/file-io.cc Mon Dec 07 13:54:01 2015 -0500 @@ -711,9 +711,7 @@ { octave_value_list retval; - int nargin = args.length (); - - if (nargin > 0) + if (args.length () > 0) warning ("freport: ignoring extra arguments"); octave_stdout << octave_stream_list::list_open_files ();