# HG changeset patch # User Kai T. Ohlhus # Date 1592802713 -32400 # Node ID bc521cd24922167356dbbb6ccb2d448d28aac0b3 # Parent c55e111c89b5a077c181f5fa6de892be5b13c2d4 * 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. diff -r c55e111c89b5 -r bc521cd24922 libinterp/octave-value/ov-cell.cc --- 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 octave_cell::cellstr_value (void) const { - Array 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