From 47fac8a259a7b3a1984ab1d25e538c0074e60d6a Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 20 Sep 2018 06:00:12 -0700 Subject: [PATCH] Removing some unused code --- pcbnew/connectivity_data.cpp | 3 --- pcbnew/footprint_libraries_utils.cpp | 1 - pcbnew/ratsnest_data.cpp | 16 ---------------- pcbnew/tools/pcb_editor_control.cpp | 4 ---- pcbnew/zone_filler.cpp | 3 --- 5 files changed, 27 deletions(-) diff --git a/pcbnew/connectivity_data.cpp b/pcbnew/connectivity_data.cpp index dbcc8d58d4..c97599388e 100644 --- a/pcbnew/connectivity_data.cpp +++ b/pcbnew/connectivity_data.cpp @@ -93,8 +93,6 @@ void CONNECTIVITY_DATA::updateRatsnest() PROF_COUNTER rnUpdate( "update-ratsnest" ); #endif - int nDirty = 0; - int i; #ifdef USE_OPENMP @@ -111,7 +109,6 @@ void CONNECTIVITY_DATA::updateRatsnest() if( m_nets[i]->IsDirty() ) { m_nets[i]->Update(); - nDirty++; } } } /* end of parallel section */ diff --git a/pcbnew/footprint_libraries_utils.cpp b/pcbnew/footprint_libraries_utils.cpp index 706ba5512b..cc2c32f614 100644 --- a/pcbnew/footprint_libraries_utils.cpp +++ b/pcbnew/footprint_libraries_utils.cpp @@ -688,7 +688,6 @@ bool FOOTPRINT_EDIT_FRAME::SaveFootprint( MODULE* aModule ) return SaveFootprintAs( aModule ); FP_LIB_TABLE* tbl = Prj().PcbFootprintLibs(); - bool syncLibraryTree = false; // Legacy libraries are readable, but modifying legacy format is not allowed // So prompt the user if he try to add/replace a footprint in a legacy lib diff --git a/pcbnew/ratsnest_data.cpp b/pcbnew/ratsnest_data.cpp index ac6ed2d339..d869a498d2 100644 --- a/pcbnew/ratsnest_data.cpp +++ b/pcbnew/ratsnest_data.cpp @@ -28,10 +28,6 @@ * @brief Class that computes missing connections on a PCB. */ -#ifdef USE_OPENMP -#include -#endif /* USE_OPENMP */ - #ifdef PROFILE #include #endif @@ -69,7 +65,6 @@ static const std::vector kruskalMST( std::list& aEdges, unsigned int mstSize = 0; bool ratsnestLines = false; - //printf("mst nodes : %d edges : %d\n", aNodes.size(), aEdges.size () ); // The output std::vector mst; @@ -196,11 +191,6 @@ private: return true; } - const std::list computeTriangulation( std::vector& aNodes ) - { - return hedTriangulation( aNodes ); - } - public: void Clear() @@ -341,7 +331,6 @@ void RN_NET::compute() { // Special cases do not need complicated algorithms (actually, it does not work well with // the Delaunay triangulator) - //printf("compute nodes : %d\n", m_nodes.size() ); if( m_nodes.size() <= 2 ) { m_rnEdges.clear(); @@ -430,13 +419,8 @@ void RN_NET::AddCluster( CN_CLUSTER_PTR aCluster ) if( nAnchors > anchors.size() ) nAnchors = anchors.size(); - //printf("item %p anchors : %d\n", item, anchors.size() ); - //printf("add item %p anchors : %d net : %d\n", item, item->Anchors().size(), item->Parent()->GetNetCode() ); - for( unsigned int i = 0; i < nAnchors; i++ ) { - // printf("add anchor %p\n", anchors[i].get() ); - anchors[i]->SetCluster( aCluster ); m_nodes.push_back(anchors[i]); diff --git a/pcbnew/tools/pcb_editor_control.cpp b/pcbnew/tools/pcb_editor_control.cpp index 25daaa0969..3c762e7ad0 100644 --- a/pcbnew/tools/pcb_editor_control.cpp +++ b/pcbnew/tools/pcb_editor_control.cpp @@ -60,10 +60,6 @@ #include -#ifdef USE_OPENMP -#include -#endif /* USE_OPENMP */ - #include #include diff --git a/pcbnew/zone_filler.cpp b/pcbnew/zone_filler.cpp index 6983b34a0a..07697d3733 100644 --- a/pcbnew/zone_filler.cpp +++ b/pcbnew/zone_filler.cpp @@ -49,9 +49,6 @@ #include "zone_filler.h" -#ifdef USE_OPENMP -#include -#endif /* USE_OPENMP */ extern void CreateThermalReliefPadPolygon( SHAPE_POLY_SET& aCornerBuffer, const D_PAD& aPad,