Source cleaning inspired by and included in patch '[ 1215450 ] cleanup: unreachable code.'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -443,14 +443,17 @@ void wxGridSelection::SelectBlock( int topRow, int leftCol,
|
||||
coords2.GetRow(), coords2.GetCol(),
|
||||
topRow, leftCol, bottomRow, rightCol ) )
|
||||
{
|
||||
case 1:
|
||||
return;
|
||||
case -1:
|
||||
m_blockSelectionTopLeft.RemoveAt(n);
|
||||
m_blockSelectionBottomRight.RemoveAt(n);
|
||||
n--; count--;
|
||||
default:
|
||||
;
|
||||
case 1:
|
||||
return;
|
||||
|
||||
case -1:
|
||||
m_blockSelectionTopLeft.RemoveAt(n);
|
||||
m_blockSelectionBottomRight.RemoveAt(n);
|
||||
n--; count--;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -465,13 +468,16 @@ void wxGridSelection::SelectBlock( int topRow, int leftCol,
|
||||
m_rowSelection[n], m_grid->GetNumberCols()-1,
|
||||
topRow, leftCol, bottomRow, rightCol ) )
|
||||
{
|
||||
case 1:
|
||||
return;
|
||||
case -1:
|
||||
m_rowSelection.RemoveAt(n);
|
||||
n--; count--;
|
||||
default:
|
||||
;
|
||||
case 1:
|
||||
return;
|
||||
|
||||
case -1:
|
||||
m_rowSelection.RemoveAt(n);
|
||||
n--; count--;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -484,13 +490,16 @@ void wxGridSelection::SelectBlock( int topRow, int leftCol,
|
||||
m_grid->GetNumberRows()-1, m_colSelection[n],
|
||||
topRow, leftCol, bottomRow, rightCol ) )
|
||||
{
|
||||
case 1:
|
||||
return;
|
||||
case -1:
|
||||
m_colSelection.RemoveAt(n);
|
||||
n--; count--;
|
||||
default:
|
||||
;
|
||||
case 1:
|
||||
return;
|
||||
|
||||
case -1:
|
||||
m_colSelection.RemoveAt(n);
|
||||
n--; count--;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user