Remove redundant condtional/unreachable code
This commit is contained in:
@@ -317,8 +317,6 @@ void wxHeaderCtrl::DoInsertItem(const wxHeaderColumn& col, unsigned int idx)
|
||||
if ( HasFlag(wxHD_BITMAP_ON_RIGHT) )
|
||||
hdi.fmt |= HDF_BITMAP_ON_RIGHT;
|
||||
|
||||
if ( bmp.IsOk() )
|
||||
{
|
||||
const int bmpWidth = bmp.GetWidth(),
|
||||
bmpHeight = bmp.GetHeight();
|
||||
|
||||
@@ -342,11 +340,6 @@ void wxHeaderCtrl::DoInsertItem(const wxHeaderColumn& col, unsigned int idx)
|
||||
m_imageList->Add(bmp);
|
||||
hdi.iImage = m_imageList->GetImageCount() - 1;
|
||||
}
|
||||
else // no bitmap but we still need to update the item
|
||||
{
|
||||
hdi.iImage = I_IMAGENONE;
|
||||
}
|
||||
}
|
||||
|
||||
if ( col.GetAlignment() != wxALIGN_NOT )
|
||||
{
|
||||
|
@@ -141,14 +141,6 @@ void* wxJoystickThread::Entry()
|
||||
|
||||
if ((j_evt.type & JS_EVENT_AXIS) && (j_evt.number < wxJS_MAX_AXES))
|
||||
{
|
||||
// Ignore invalid axis.
|
||||
if ( j_evt.number >= wxJS_MAX_AXES )
|
||||
{
|
||||
wxLogDebug(wxS("Invalid axis index %d in joystick message."),
|
||||
j_evt.number);
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( (m_axe[j_evt.number] + m_threshold < j_evt.value)
|
||||
|| (m_axe[j_evt.number] - m_threshold > j_evt.value) )
|
||||
{
|
||||
|
Reference in New Issue
Block a user