Dead code cleanup.
This commit is contained in:
parent
af2219ba7f
commit
253b2da717
|
@ -110,53 +110,6 @@ struct VIEW_OVERLAY::COMMAND_ARC : public VIEW_OVERLAY::COMMAND
|
|||
};
|
||||
|
||||
|
||||
struct VIEW_OVERLAY::COMMAND_POLYLINE : public VIEW_OVERLAY::COMMAND
|
||||
{
|
||||
COMMAND_POLYLINE( const std::deque<VECTOR2D>& aPointList ) :
|
||||
m_pointList( aPointList ) {}
|
||||
|
||||
virtual void Execute( VIEW* aView ) const override
|
||||
{
|
||||
aView->GetGAL()->DrawPolyline( m_pointList );
|
||||
}
|
||||
|
||||
std::deque<VECTOR2D> m_pointList;
|
||||
};
|
||||
|
||||
|
||||
struct VIEW_OVERLAY::COMMAND_POLY_POLYLINE : public VIEW_OVERLAY::COMMAND
|
||||
{
|
||||
COMMAND_POLY_POLYLINE( const SHAPE_LINE_CHAIN& aLineChain ) :
|
||||
m_polyLine( aLineChain ) {}
|
||||
|
||||
virtual void Execute( VIEW* aView ) const override
|
||||
{
|
||||
aView->GetGAL()->DrawPolyline( m_polyLine );
|
||||
}
|
||||
|
||||
SHAPE_LINE_CHAIN m_polyLine;
|
||||
};
|
||||
|
||||
|
||||
struct VIEW_OVERLAY::COMMAND_POINT_POLYLINE : public VIEW_OVERLAY::COMMAND
|
||||
{
|
||||
COMMAND_POINT_POLYLINE( const VECTOR2D aPointList[], int aListSize )
|
||||
{
|
||||
m_pointList.reserve( aListSize );
|
||||
|
||||
for( int ii = 0; ii < aListSize; ii++ )
|
||||
m_pointList.push_back( aPointList[ii] );
|
||||
}
|
||||
|
||||
virtual void Execute( VIEW* aView ) const override
|
||||
{
|
||||
aView->GetGAL()->DrawPolyline( &m_pointList[0], (int)m_pointList.size() );
|
||||
}
|
||||
|
||||
std::vector<VECTOR2D> m_pointList;
|
||||
};
|
||||
|
||||
|
||||
struct VIEW_OVERLAY::COMMAND_POLYGON : public VIEW_OVERLAY::COMMAND
|
||||
{
|
||||
COMMAND_POLYGON( const std::deque<VECTOR2D>& aPointList ) :
|
||||
|
@ -333,24 +286,6 @@ void VIEW_OVERLAY::Segment( const VECTOR2D& aStartPoint, const VECTOR2D& aEndPoi
|
|||
}
|
||||
|
||||
|
||||
void VIEW_OVERLAY::Polyline( std::deque<VECTOR2D>& aPointList )
|
||||
{
|
||||
// fixme: implement
|
||||
}
|
||||
|
||||
|
||||
void VIEW_OVERLAY::Polyline( const VECTOR2D aPointList[], int aListSize )
|
||||
{
|
||||
// fixme: implement
|
||||
}
|
||||
|
||||
|
||||
void VIEW_OVERLAY::Polyline( const SHAPE_LINE_CHAIN& aLineChain )
|
||||
{
|
||||
m_commands.push_back( new COMMAND_POLY_POLYLINE( aLineChain ) );
|
||||
}
|
||||
|
||||
|
||||
void VIEW_OVERLAY::Polygon( const SHAPE_POLY_SET& aPolySet )
|
||||
{
|
||||
m_commands.push_back( new COMMAND_POLY_POLYGON( aPolySet ) );
|
||||
|
|
|
@ -64,7 +64,6 @@ public:
|
|||
|
||||
struct COMMAND_POLYLINE;
|
||||
struct COMMAND_POINT_POLYLINE;
|
||||
struct COMMAND_POLY_POLYLINE;
|
||||
|
||||
void Clear();
|
||||
|
||||
|
@ -81,11 +80,6 @@ public:
|
|||
void Rectangle( const VECTOR2D& aStartPoint, const VECTOR2D& aEndPoint );
|
||||
void Cross( const VECTOR2D& aP, int aSize );
|
||||
|
||||
// Polyline primitives
|
||||
void Polyline( std::deque<VECTOR2D>& aPointList );
|
||||
void Polyline( const VECTOR2D aPointList[], int aListSize );
|
||||
void Polyline( const SHAPE_LINE_CHAIN& aLineChain );
|
||||
|
||||
// polygon primitives
|
||||
void Polygon( const std::deque<VECTOR2D>& aPointList );
|
||||
void Polygon( const SHAPE_POLY_SET& aPolySet );
|
||||
|
|
Loading…
Reference in New Issue