diff --git a/common/view/view_overlay.cpp b/common/view/view_overlay.cpp index 96c2613616..8d2f97bb4b 100644 --- a/common/view/view_overlay.cpp +++ b/common/view/view_overlay.cpp @@ -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& aPointList ) : - m_pointList( aPointList ) {} - - virtual void Execute( VIEW* aView ) const override - { - aView->GetGAL()->DrawPolyline( m_pointList ); - } - - std::deque 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 m_pointList; -}; - - struct VIEW_OVERLAY::COMMAND_POLYGON : public VIEW_OVERLAY::COMMAND { COMMAND_POLYGON( const std::deque& aPointList ) : @@ -333,24 +286,6 @@ void VIEW_OVERLAY::Segment( const VECTOR2D& aStartPoint, const VECTOR2D& aEndPoi } -void VIEW_OVERLAY::Polyline( std::deque& 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 ) ); diff --git a/include/view/view_overlay.h b/include/view/view_overlay.h index 21e950a5f1..b20f220ff7 100644 --- a/include/view/view_overlay.h +++ b/include/view/view_overlay.h @@ -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& aPointList ); - void Polyline( const VECTOR2D aPointList[], int aListSize ); - void Polyline( const SHAPE_LINE_CHAIN& aLineChain ); - // polygon primitives void Polygon( const std::deque& aPointList ); void Polygon( const SHAPE_POLY_SET& aPolySet );