diff --git a/pcbnew/connectivity_algo.cpp b/pcbnew/connectivity_algo.cpp index ef58d16d36..bb53146d79 100644 --- a/pcbnew/connectivity_algo.cpp +++ b/pcbnew/connectivity_algo.cpp @@ -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() { m_items.reserve( 64 ); @@ -425,12 +419,6 @@ void CN_LIST::RemoveInvalidItems( std::vector& aGarbage ) } -bool CN_CONNECTIVITY_ALGO::isDirty() const -{ - return m_itemList.IsDirty(); -} - - 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 }; @@ -452,7 +440,7 @@ const CN_CONNECTIVITY_ALGO::CLUSTERS CN_CONNECTIVITY_ALGO::SearchClusters( CLUST CN_ITEM* head = nullptr; CLUSTERS clusters; - if( isDirty() ) + if( m_itemList.IsDirty() ) searchConnections(); auto addToSearchList = [&head, withinAnyNet, aSingleNet, aTypes] ( CN_ITEM *aItem ) diff --git a/pcbnew/connectivity_algo.h b/pcbnew/connectivity_algo.h index 91f439b05e..0eee1e7bf5 100644 --- a/pcbnew/connectivity_algo.h +++ b/pcbnew/connectivity_algo.h @@ -86,8 +86,6 @@ public: return m_pos; } - bool IsDirty() const; - /// Returns tag, common identifier for connected nodes inline int GetTag() const { @@ -738,9 +736,6 @@ public: m_itemMap[ brditem ] = ITEM_MAP_ENTRY( item ); } - bool addConnectedItem( BOARD_CONNECTED_ITEM* aItem ); - bool isDirty() const; - void markItemNetAsDirty( const BOARD_ITEM* aItem ); public: