Remove unused OBSTACLE_VISITOR::m_extraClearance

This commit is contained in:
Jonathan Haas 2021-04-22 14:43:05 +02:00 committed by Jon Evans
parent 3e96fb851c
commit 075bd788eb
3 changed files with 2 additions and 8 deletions

View File

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

View File

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

View File

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