From 77b68a827c1f3b2541a3655ac9d664f4c069999c Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sat, 3 Jul 2021 19:20:35 -0400 Subject: [PATCH] Remove unused variable --- pcbnew/plugins/kicad/kicad_plugin.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pcbnew/plugins/kicad/kicad_plugin.cpp b/pcbnew/plugins/kicad/kicad_plugin.cpp index 3438d521da..f344afd018 100644 --- a/pcbnew/plugins/kicad/kicad_plugin.cpp +++ b/pcbnew/plugins/kicad/kicad_plugin.cpp @@ -830,7 +830,6 @@ void PCB_IO::format( const PCB_SHAPE* aShape, int aNestLevel ) const { const SHAPE_POLY_SET& poly = aShape->GetPolyShape(); const SHAPE_LINE_CHAIN& outline = poly.Outline( 0 ); - const int pointsCount = outline.PointCount(); m_out->Print( aNestLevel, "(gr_poly%s (pts\n", locked.c_str() ); @@ -839,7 +838,7 @@ void PCB_IO::format( const PCB_SHAPE* aShape, int aNestLevel ) const { int nestLevel = 0; - if( ii && ( !( ii%4 ) || !ADVANCED_CFG::GetCfg().m_CompactSave ) ) + if( ii && ( !( ii % 4 ) || !ADVANCED_CFG::GetCfg().m_CompactSave ) ) { // newline every 4 pts. nestLevel = aNestLevel + 1; @@ -851,11 +850,12 @@ void PCB_IO::format( const PCB_SHAPE* aShape, int aNestLevel ) const if( ind < 0 ) { m_out->Print( nestLevel, "%s(xy %s)", - nestLevel ? "" : " ", FormatInternalUnits( outline.CPoint( ii ) ).c_str() ); + nestLevel ? "" : " ", + FormatInternalUnits( outline.CPoint( ii ) ).c_str() ); } else { - auto& arc = outline.Arc( ind ); + SHAPE_ARC& arc = outline.Arc( ind ); m_out->Print( aNestLevel, "%s(arc (start %s) (mid %s) (end %s)", nestLevel ? "" : " ", FormatInternalUnits( arc.GetP0() ).c_str(),