remove always-true test of unsigned >= 0

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett 2011-01-08 18:22:07 +00:00
parent dc771347d0
commit 5eed855656

View File

@ -372,15 +372,7 @@ wxString wxControlBase::DoEllipsizeSingleLine(const wxString& curLine, const wxD
return curLine;
}
#ifdef __VMS
#pragma message disable unscomzer
// suppress warnings on comparison of unsigned numbers
#endif
wxASSERT(initialCharToRemove >= 0 && initialCharToRemove <= len-1); // see valid range for initialCharToRemove above
#ifdef __VMS
#pragma message enable unscomzer
// suppress warnings on comparison of unsigned numbers
#endif
wxASSERT(initialCharToRemove <= len-1); // see valid range for initialCharToRemove above
wxASSERT(nCharsToRemove >= 1 && nCharsToRemove <= len-initialCharToRemove); // see valid range for nCharsToRemove above
// erase nCharsToRemove characters after initialCharToRemove (included);