Remove dead code in AddJunctionsIfNeeded

This commit is contained in:
Roberto Fernandez Bautista 2022-08-18 20:42:45 +01:00
parent 7332c0c54d
commit 22cc861c9b
1 changed files with 0 additions and 6 deletions

View File

@ -1291,12 +1291,6 @@ int SCH_LINE_WIRE_BUS_TOOL::AddJunctionsIfNeeded( EE_SELECTION* aSelection )
std::vector<VECTOR2I> pts; std::vector<VECTOR2I> pts;
std::vector<VECTOR2I> connections = screen->GetConnections(); std::vector<VECTOR2I> connections = screen->GetConnections();
std::set<SCH_LINE*> lines;
BOX2I bb = aSelection->GetBoundingBox();
for( EDA_ITEM* item : screen->Items().Overlapping( SCH_LINE_T, bb ) )
lines.insert( static_cast<SCH_LINE*>( item ) );
for( unsigned ii = 0; ii < aSelection->GetSize(); ii++ ) for( unsigned ii = 0; ii < aSelection->GetSize(); ii++ )
{ {
SCH_ITEM* item = dynamic_cast<SCH_ITEM*>( aSelection->GetItem( ii ) ); SCH_ITEM* item = dynamic_cast<SCH_ITEM*>( aSelection->GetItem( ii ) );