Remove unneeded distance calc
This commit is contained in:
parent
24865971af
commit
857683d372
|
@ -1505,8 +1505,6 @@ int SHAPE_LINE_CHAIN::PathLength( const VECTOR2I& aP, int aIndex ) const
|
||||||
for( int i = 0; i < SegmentCount(); i++ )
|
for( int i = 0; i < SegmentCount(); i++ )
|
||||||
{
|
{
|
||||||
const SEG seg = CSegment( i );
|
const SEG seg = CSegment( i );
|
||||||
int d = seg.Distance( aP );
|
|
||||||
|
|
||||||
bool indexMatch = true;
|
bool indexMatch = true;
|
||||||
|
|
||||||
if( aIndex >= 0 )
|
if( aIndex >= 0 )
|
||||||
|
|
Loading…
Reference in New Issue