diff --git a/pcbnew/connectivity_algo.cpp b/pcbnew/connectivity_algo.cpp index 3a86d0ec5d..c334db6f8c 100644 --- a/pcbnew/connectivity_algo.cpp +++ b/pcbnew/connectivity_algo.cpp @@ -668,7 +668,6 @@ void CN_CONNECTIVITY_ALGO::propagateConnections() void CN_CONNECTIVITY_ALGO::PropagateNets() { - //searchConnections( false ); m_connClusters = SearchClusters( CSM_PROPAGATE ); propagateConnections(); } diff --git a/pcbnew/tools/selection_tool.cpp b/pcbnew/tools/selection_tool.cpp index 7ce4dc76fc..348d2b83c8 100644 --- a/pcbnew/tools/selection_tool.cpp +++ b/pcbnew/tools/selection_tool.cpp @@ -964,9 +964,6 @@ void SELECTION_TOOL::selectAllItemsConnectedToItem( BOARD_CONNECTED_ITEM& aSourc constexpr KICAD_T types[] = { PCB_TRACE_T, PCB_VIA_T, EOT }; auto connectivity = board()->GetConnectivity(); - std::vector items; - items = connectivity->GetConnectedItems( &aSourceItem, types ); - for( auto item : connectivity->GetConnectedItems( &aSourceItem, types ) ) select( item ); }