Remove redundant comparison of unsigned value with 0.
This is always true and so is unnecessary. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
6cf1fc7610
commit
4e89786483
@ -189,7 +189,7 @@ wxPoint wxJoystick::GetPosition() const
|
||||
}
|
||||
int wxJoystick::GetPosition(unsigned int axis) const
|
||||
{
|
||||
wxCHECK_MSG(axis >=0 && axis < GetNumberAxes(), 0, "Invalid joystick axis");
|
||||
wxCHECK_MSG(axis < GetNumberAxes(), 0, "Invalid joystick axis");
|
||||
if (m_thread)
|
||||
return m_thread->m_axe[axis];
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user