From: Jean-Marc Lasgouttes Date: Sun, 15 Sep 2019 21:30:29 +0000 (+0200) Subject: Avoid useless test X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8c5bbf44dff2b226ac7b5044542991b74720c94a;p=features.git Avoid useless test Spotted by cppcheck --- diff --git a/src/mathed/InsetMathMacro.cpp b/src/mathed/InsetMathMacro.cpp index 5e72eecdc2..b5b0322a54 100644 --- a/src/mathed/InsetMathMacro.cpp +++ b/src/mathed/InsetMathMacro.cpp @@ -1233,7 +1233,6 @@ bool InsetMathMacro::completionSupported(Cursor const & cur) const return InsetMathNest::completionSupported(cur); return lyxrc.completion_popup_math - && displayMode() == DISPLAY_UNFOLDED && cur.bv().cursor().pos() == int(name().size()); } @@ -1244,7 +1243,6 @@ bool InsetMathMacro::inlineCompletionSupported(Cursor const & cur) const return InsetMathNest::inlineCompletionSupported(cur); return lyxrc.completion_inline_math - && displayMode() == DISPLAY_UNFOLDED && cur.bv().cursor().pos() == int(name().size()); }