Browse Source

Remove unneeded distance calc

(cherry picked from commit 857683d372)
7.0
Seth Hillbrand 4 years ago
parent
commit
57afdf153d
  1. 2
      libs/kimath/src/geometry/shape_line_chain.cpp

2
libs/kimath/src/geometry/shape_line_chain.cpp

@ -1503,8 +1503,6 @@ int SHAPE_LINE_CHAIN::PathLength( const VECTOR2I& aP, int aIndex ) const
for( int i = 0; i < SegmentCount(); i++ )
{
const SEG seg = CSegment( i );
int d = seg.Distance( aP );
bool indexMatch = true;
if( aIndex >= 0 )

Loading…
Cancel
Save