commit ce0c11ba4e54fa7d619ea26c3fe05af50e474cd0
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Thu Mar 9 15:05:33 2017 +0100
Remove unreachable return statements
They were needed long ago to avoid gcc warnings, but now all they do
is create coverity warnings.
---
src/mathed/InsetMathHull.cpp | 3 ---
src/support/Package.cpp | 3 ---
2 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp
index e21beb2..851c1e6 100644
--- a/src/mathed/InsetMathHull.cpp
+++ b/src/mathed/InsetMathHull.cpp
@@ -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);
}
diff --git a/src/support/Package.cpp b/src/support/Package.cpp
index 1fd47ec..bdba77e 100644
--- a/src/support/Package.cpp
+++ b/src/support/Package.cpp
@@ -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();
}