Eliminate one wxRect constructor in BOX2

The only usage auto converted to BOX2D anyway...
This commit is contained in:
Marek Roszko 2021-06-03 01:26:49 -04:00
parent 24cb0e77eb
commit 29783f125b
2 changed files with 1 additions and 11 deletions

View File

@ -857,7 +857,7 @@ void EDA_DRAW_FRAME::FocusOnLocation( const wxPoint& aPos )
// If a dialog partly obscures the window, then center on the uncovered area.
if( dialog )
{
wxRect dialogRect( GetCanvas()->ScreenToClient( dialog->GetScreenPosition() ),
BOX2D dialogRect( GetCanvas()->ScreenToClient( dialog->GetScreenPosition() ),
dialog->GetSize() );
GetCanvas()->GetView()->SetCenter( aPos, dialogRect );
}

View File

@ -60,16 +60,6 @@ public:
Normalize();
}
#ifdef WX_COMPATIBILITY
/// Constructor with a wxRect as argument
BOX2( const wxRect& aRect ) :
m_Pos( aRect.GetPosition() ),
m_Size( aRect.GetSize() )
{
Normalize();
}
#endif
void SetMaximum()
{
m_Pos.x = m_Pos.y = coord_limits::lowest() / 2 + coord_limits::epsilon();