Fix 2 minor compil warnings.
This commit is contained in:
parent
08c2237a94
commit
07d7ccf46f
|
@ -2216,9 +2216,9 @@ BOARD_ITEM* FOOTPRINT::DuplicateItem( const BOARD_ITEM* aItem, bool aAddToFootpr
|
|||
if( aAddToFootprint )
|
||||
{
|
||||
group->RunOnDescendants(
|
||||
[&]( BOARD_ITEM* aItem )
|
||||
[&]( BOARD_ITEM* aCurrItem )
|
||||
{
|
||||
Add( aItem );
|
||||
Add( aCurrItem );
|
||||
} );
|
||||
|
||||
Add( new_item );
|
||||
|
|
|
@ -629,8 +629,6 @@ bool TRACKS_CLEANER::mergeCollinearSegments( PCB_TRACK* aSeg1, PCB_TRACK* aSeg2
|
|||
collectPts( item );
|
||||
}
|
||||
|
||||
int64_t combined_length = aSeg1->GetLength() + aSeg2->GetLength();
|
||||
|
||||
// This means there is a node in the center
|
||||
if( pts.size() > 2 )
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue