From 22cc861c9b9b5efdab42e0659992a5a544d3eb6c Mon Sep 17 00:00:00 2001 From: Roberto Fernandez Bautista Date: Thu, 18 Aug 2022 20:42:45 +0100 Subject: [PATCH] Remove dead code in AddJunctionsIfNeeded --- eeschema/tools/sch_line_wire_bus_tool.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/eeschema/tools/sch_line_wire_bus_tool.cpp b/eeschema/tools/sch_line_wire_bus_tool.cpp index 87029f9533..4301c79b3a 100644 --- a/eeschema/tools/sch_line_wire_bus_tool.cpp +++ b/eeschema/tools/sch_line_wire_bus_tool.cpp @@ -1291,12 +1291,6 @@ int SCH_LINE_WIRE_BUS_TOOL::AddJunctionsIfNeeded( EE_SELECTION* aSelection ) std::vector pts; std::vector connections = screen->GetConnections(); - std::set lines; - BOX2I bb = aSelection->GetBoundingBox(); - - for( EDA_ITEM* item : screen->Items().Overlapping( SCH_LINE_T, bb ) ) - lines.insert( static_cast( item ) ); - for( unsigned ii = 0; ii < aSelection->GetSize(); ii++ ) { SCH_ITEM* item = dynamic_cast( aSelection->GetItem( ii ) );