Mercurial > hg > octave-nkf
diff src/ov-fcn-handle.cc @ 7689:a9d25da4ed9c
octave_fcn_handle::subsref: don't call next_subsref
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 03 Apr 2008 13:13:01 -0400 |
parents | 745a8299c2b5 |
children | 39930366b709 |
line wrap: on
line diff
--- a/src/ov-fcn-handle.cc +++ b/src/ov-fcn-handle.cc @@ -104,12 +104,8 @@ panic_impossible (); } - // FIXME -- perhaps there should be an - // octave_value_list::next_subsref member function? See also - // octave_builtin::subsref. - - if (idx.size () > 1) - retval = retval(0).next_subsref (nargout, type, idx); + // There's no need to call next_subsref here -- + // octave_function::subsref will handle that for us. return retval; }