Remove redundant conditionals

This commit is contained in:
Paul Cornett
2019-04-05 09:06:06 -07:00
parent 0dfe0d0a9c
commit 6a35140686
4 changed files with 5 additions and 27 deletions

View File

@@ -2737,7 +2737,7 @@ long wxRichTextCtrl::FindNextWordPosition(int direction) const
if (text.empty()) // End of paragraph, or maybe an image
return wxMax(-1, i - 1);
else if (wxRichTextCtrlIsWhitespace(text) || text.empty())
else if (wxRichTextCtrlIsWhitespace(text))
i += direction;
else
{
@@ -5407,10 +5407,7 @@ void wxRichTextCaret::DoSize()
{
m_countVisible = 0;
DoHide();
}
if (countVisible > 0)
{
m_countVisible = countVisible;
DoShow();
}