]> git.lyx.org Git - features.git/commitdiff
Remove unreachable return statements
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 9 Mar 2017 14:05:33 +0000 (15:05 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 9 Mar 2017 14:05:33 +0000 (15:05 +0100)
They were needed long ago to avoid gcc warnings, but now all they do
is create coverity warnings.

src/mathed/InsetMathHull.cpp
src/support/Package.cpp

index e21beb236e98730460d693f68c0aab4705482aaa..851c1e6167313fad2465b528135e43e0e096649f 100644 (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);
 }
 
 
index 1fd47eca6880cdea39b09b6f7926f3ac88e7c415..bdba77e7ac72780cafd97a6ad3e3b341683b6789 100644 (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();
 }