changeset 28495:bc521cd24922 stable

* ov-cell.cc: remove redundant return statement (bug #58617) libinterp/octave-value/ov-cell.cc (octave_cell::cellstr_value): Remove redundant statements without effect. Interestingly, the compiler did not complain about them for years. Introduced in cset 3aa293be0e8d.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Mon, 22 Jun 2020 14:11:53 +0900
parents c55e111c89b5
children 3b97c9637ea4 2813ac10ca1e
files libinterp/octave-value/ov-cell.cc
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/octave-value/ov-cell.cc	Sun Jun 21 11:42:55 2020 +0200
+++ b/libinterp/octave-value/ov-cell.cc	Mon Jun 22 14:11:53 2020 +0900
@@ -628,8 +628,6 @@
 Array<std::string>
 octave_cell::cellstr_value (void) const
 {
-  Array<std::string> retval;
-
   if (! iscellstr ())
     error ("invalid conversion from cell array to array of strings");
 
@@ -637,8 +635,6 @@
     *cellstr_cache = matrix.cellstr_value ();
 
   return *cellstr_cache;
-
-  return retval;
 }
 
 bool