pcbnew: Code Cleanup removing unused fns
IsDirty() is generic, so we keep the clearer m_items.isDirty() sub function and clear out old defs.
This commit is contained in:
parent
cc776f71a9
commit
9e4cad666e
|
@ -45,12 +45,6 @@ bool operator<( const CN_ANCHOR_PTR& a, const CN_ANCHOR_PTR& b )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool CN_ANCHOR::IsDirty() const
|
|
||||||
{
|
|
||||||
return m_item->Dirty();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
CN_CLUSTER::CN_CLUSTER()
|
CN_CLUSTER::CN_CLUSTER()
|
||||||
{
|
{
|
||||||
m_items.reserve( 64 );
|
m_items.reserve( 64 );
|
||||||
|
@ -425,12 +419,6 @@ void CN_LIST::RemoveInvalidItems( std::vector<CN_ITEM*>& aGarbage )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool CN_CONNECTIVITY_ALGO::isDirty() const
|
|
||||||
{
|
|
||||||
return m_itemList.IsDirty();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
const CN_CONNECTIVITY_ALGO::CLUSTERS CN_CONNECTIVITY_ALGO::SearchClusters( CLUSTER_SEARCH_MODE aMode )
|
const CN_CONNECTIVITY_ALGO::CLUSTERS CN_CONNECTIVITY_ALGO::SearchClusters( CLUSTER_SEARCH_MODE aMode )
|
||||||
{
|
{
|
||||||
constexpr KICAD_T types[] = { PCB_TRACE_T, PCB_PAD_T, PCB_VIA_T, PCB_ZONE_AREA_T, PCB_MODULE_T, EOT };
|
constexpr KICAD_T types[] = { PCB_TRACE_T, PCB_PAD_T, PCB_VIA_T, PCB_ZONE_AREA_T, PCB_MODULE_T, EOT };
|
||||||
|
@ -452,7 +440,7 @@ const CN_CONNECTIVITY_ALGO::CLUSTERS CN_CONNECTIVITY_ALGO::SearchClusters( CLUST
|
||||||
CN_ITEM* head = nullptr;
|
CN_ITEM* head = nullptr;
|
||||||
CLUSTERS clusters;
|
CLUSTERS clusters;
|
||||||
|
|
||||||
if( isDirty() )
|
if( m_itemList.IsDirty() )
|
||||||
searchConnections();
|
searchConnections();
|
||||||
|
|
||||||
auto addToSearchList = [&head, withinAnyNet, aSingleNet, aTypes] ( CN_ITEM *aItem )
|
auto addToSearchList = [&head, withinAnyNet, aSingleNet, aTypes] ( CN_ITEM *aItem )
|
||||||
|
|
|
@ -86,8 +86,6 @@ public:
|
||||||
return m_pos;
|
return m_pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsDirty() const;
|
|
||||||
|
|
||||||
/// Returns tag, common identifier for connected nodes
|
/// Returns tag, common identifier for connected nodes
|
||||||
inline int GetTag() const
|
inline int GetTag() const
|
||||||
{
|
{
|
||||||
|
@ -738,9 +736,6 @@ public:
|
||||||
m_itemMap[ brditem ] = ITEM_MAP_ENTRY( item );
|
m_itemMap[ brditem ] = ITEM_MAP_ENTRY( item );
|
||||||
}
|
}
|
||||||
|
|
||||||
bool addConnectedItem( BOARD_CONNECTED_ITEM* aItem );
|
|
||||||
bool isDirty() const;
|
|
||||||
|
|
||||||
void markItemNetAsDirty( const BOARD_ITEM* aItem );
|
void markItemNetAsDirty( const BOARD_ITEM* aItem );
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue