diff libinterp/corefcn/debug.cc @ 28975:bbff46267cad

maint: Remove redundant never-executed statements following error() in libinterp/. * debug.cc, mex.cc, ov-fcn-handle.cc, ov-java.cc, ov-magic-int.cc, ov.cc: Remove redundant never-executed statements following error().
author Rik <rik@octave.org>
date Wed, 21 Oct 2020 15:53:32 -0700
parents d9d028b479ac
children 7854d5752dd2
line wrap: on
line diff
--- a/libinterp/corefcn/debug.cc	Wed Oct 21 14:33:14 2020 -0700
+++ b/libinterp/corefcn/debug.cc	Wed Oct 21 15:53:32 2020 -0700
@@ -222,10 +222,7 @@
                   && bkpt.cell_value () (0).isstruct ())
                 mv = bkpt.cell_value () (0).map_value ();
               else
-                {
-                  error ("dbstop: invalid 'bkpt' field");
-                  mv = octave_map ();
-                }
+                error ("dbstop: invalid 'bkpt' field");
             }
         }
       if (mv.isempty ())
@@ -235,7 +232,6 @@
       else if (! mv.isfield ("name") || ! mv.isfield ("line"))
         {
           error ("dbstop: Cell array must contain fields 'name' and 'line'");
-          retval = octave_value (0);
         }
       else
         {