Remove unreachable return statements

They were needed long ago to avoid gcc warnings, but now all they do
is create coverity warnings.
This commit is contained in:
Jean-Marc Lasgouttes 2017-03-09 15:05:33 +01:00
parent 5a62e37add
commit ce0c11ba4e
2 changed files with 0 additions and 6 deletions

View File

@ -2117,9 +2117,6 @@ bool InsetMathHull::getStatus(Cursor & cur, FuncRequest const & cmd,
default:
return InsetMathGrid::getStatus(cur, cmd, status);
}
// This cannot really happen, but inserted to shut-up gcc
return InsetMathGrid::getStatus(cur, cmd, status);
}

View File

@ -651,9 +651,6 @@ get_system_support_dir(FileName const & abs_binary,
"to the LyX system directory containing the "
"file `chkconfig.ltx'."),
from_utf8(searched_dirs_str), from_ascii(LYX_DIR_VER)));
// Keep the compiler happy.
return FileName();
}