Browse Source

Remove unused OBSTACLE_VISITOR::m_extraClearance

6.0.7
Jonathan Haas 5 years ago
committed by Jon Evans
parent
commit
075bd788eb
  1. 2
      include/advanced_config.h
  2. 7
      pcbnew/router/pns_node.cpp
  3. 1
      pcbnew/router/pns_node.h

2
include/advanced_config.h

@ -97,7 +97,7 @@ public:
/**
* Epsilon for DRC tests. Note that for zone tests this is essentially additive with
* m_extraClearance. Units are mm.
* m_ExtraClearance. Units are mm.
*/
double m_DRCEpsilon;

7
pcbnew/router/pns_node.cpp

@ -169,8 +169,7 @@ void NODE::unlinkParent()
OBSTACLE_VISITOR::OBSTACLE_VISITOR( const ITEM* aItem ) :
m_item( aItem ),
m_node( NULL ),
m_override( NULL ),
m_extraClearance( 0 )
m_override( NULL )
{
}
@ -212,10 +211,6 @@ struct NODE::DEFAULT_OBSTACLE_VISITOR : public OBSTACLE_VISITOR
m_matchCount( 0 ),
m_differentNetsOnly( aDifferentNetsOnly )
{
if( aItem && aItem->Kind() == ITEM::LINE_T )
{
m_extraClearance += static_cast<const LINE*>( aItem )->Width() / 2;
}
}
virtual ~DEFAULT_OBSTACLE_VISITOR()

1
pcbnew/router/pns_node.h

@ -130,7 +130,6 @@ protected:
const NODE* m_node; ///< node we are searching in (either root or a branch)
const NODE* m_override; ///< node that overrides root entries
int m_extraClearance; ///< additional clearance
};
/**

Loading…
Cancel
Save