Removing some unused code

This commit is contained in:
Seth Hillbrand 2018-09-20 06:00:12 -07:00
parent 27d57d9191
commit 47fac8a259
5 changed files with 0 additions and 27 deletions

View File

@ -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 */

View File

@ -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

View File

@ -28,10 +28,6 @@
* @brief Class that computes missing connections on a PCB.
*/
#ifdef USE_OPENMP
#include <omp.h>
#endif /* USE_OPENMP */
#ifdef PROFILE
#include <profile.h>
#endif
@ -69,7 +65,6 @@ static const std::vector<CN_EDGE> kruskalMST( std::list<CN_EDGE>& aEdges,
unsigned int mstSize = 0;
bool ratsnestLines = false;
//printf("mst nodes : %d edges : %d\n", aNodes.size(), aEdges.size () );
// The output
std::vector<CN_EDGE> mst;
@ -196,11 +191,6 @@ private:
return true;
}
const std::list<hed::EDGE_PTR> computeTriangulation( std::vector<hed::NODE_PTR>& 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]);

View File

@ -60,10 +60,6 @@
#include <widgets/progress_reporter.h>
#ifdef USE_OPENMP
#include <omp.h>
#endif /* USE_OPENMP */
#include <tools/tool_event_utils.h>
#include <functional>

View File

@ -49,9 +49,6 @@
#include "zone_filler.h"
#ifdef USE_OPENMP
#include <omp.h>
#endif /* USE_OPENMP */
extern void CreateThermalReliefPadPolygon( SHAPE_POLY_SET& aCornerBuffer,
const D_PAD& aPad,