Remove unused variable

This commit is contained in:
Jon Evans 2021-07-03 19:20:35 -04:00
parent aa5902bd99
commit 77b68a827c
1 changed files with 4 additions and 4 deletions

View File

@ -830,7 +830,6 @@ void PCB_IO::format( const PCB_SHAPE* aShape, int aNestLevel ) const
{ {
const SHAPE_POLY_SET& poly = aShape->GetPolyShape(); const SHAPE_POLY_SET& poly = aShape->GetPolyShape();
const SHAPE_LINE_CHAIN& outline = poly.Outline( 0 ); const SHAPE_LINE_CHAIN& outline = poly.Outline( 0 );
const int pointsCount = outline.PointCount();
m_out->Print( aNestLevel, "(gr_poly%s (pts\n", m_out->Print( aNestLevel, "(gr_poly%s (pts\n",
locked.c_str() ); locked.c_str() );
@ -851,11 +850,12 @@ void PCB_IO::format( const PCB_SHAPE* aShape, int aNestLevel ) const
if( ind < 0 ) if( ind < 0 )
{ {
m_out->Print( nestLevel, "%s(xy %s)", m_out->Print( nestLevel, "%s(xy %s)",
nestLevel ? "" : " ", FormatInternalUnits( outline.CPoint( ii ) ).c_str() ); nestLevel ? "" : " ",
FormatInternalUnits( outline.CPoint( ii ) ).c_str() );
} }
else else
{ {
auto& arc = outline.Arc( ind ); SHAPE_ARC& arc = outline.Arc( ind );
m_out->Print( aNestLevel, "%s(arc (start %s) (mid %s) (end %s)", m_out->Print( aNestLevel, "%s(arc (start %s) (mid %s) (end %s)",
nestLevel ? "" : " ", nestLevel ? "" : " ",
FormatInternalUnits( arc.GetP0() ).c_str(), FormatInternalUnits( arc.GetP0() ).c_str(),