From 02d55ab0b3f34704d8abd62418b3cfdc54c44aaf Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Sun, 15 Sep 2019 23:30:29 +0200 Subject: [PATCH] Avoid useless test Spotted by cppcheck --- src/mathed/InsetMathMacro.cpp | 2 -- 1 file changed, 2 deletions(-) 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()); } -- 2.39.2