Mercurial > octave
diff libinterp/corefcn/toplev.cc @ 21078:49852ff04747
maint: Remove unnecessary declarations of retval.
* __pchip_deriv__.cc, data.cc, dirfns.cc, error.cc, file-io.cc, input.cc,
load-path.cc, octave-link.cc, strfns.cc, sysdep.cc, time.cc, toplev.cc,
urlwrite.cc, ov-cell.cc, ov.cc: Remove unnecessary declarations of retval.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 15 Jan 2016 13:40:34 -0800 |
parents | 5e00ed38a58b |
children | bd1752782e56 |
line wrap: on
line diff
--- a/libinterp/corefcn/toplev.cc Fri Jan 15 10:52:48 2016 -0800 +++ b/libinterp/corefcn/toplev.cc Fri Jan 15 13:40:34 2016 -0800 @@ -828,13 +828,11 @@ @seealso{atexit}\n\ @end deftypefn") { - octave_value_list retval; - // Confirm OK to shutdown. Note: A dynamic function installation similar // to overriding polymorphism for which the GUI can install its own "quit" // yet call this base "quit" could be nice. No link would be needed here. if (! octave_link::confirm_shutdown ()) - return retval; + return ovl (); if (! quit_allowed) error ("quit: not supported in embedded mode"); @@ -858,7 +856,7 @@ octave_throw_interrupt_exception (); - return retval; + return ovl (); } DEFALIAS (exit, quit); @@ -869,8 +867,6 @@ Describe the conditions for copying and distributing Octave.\n\ @end deftypefn") { - octave_value_list retval; - octave_stdout << "\n" << octave_name_version_and_copyright () << "\n\ \n\ GNU Octave is free software; you can redistribute it and/or modify\n\ @@ -887,7 +883,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.\n\ \n"; - return retval; + return ovl (); } // Execute a shell command.