diff --git a/pcbnew/connectivity.cpp b/pcbnew/connectivity.cpp index c1d779e7ac..a62c06a1ca 100644 --- a/pcbnew/connectivity.cpp +++ b/pcbnew/connectivity.cpp @@ -273,12 +273,6 @@ void CONNECTIVITY_DATA::ComputeDynamicRatsnest( const std::vector& } -const std::vector& CONNECTIVITY_DATA::GetDynamicRatsnest() const -{ - return m_dynamicRatsnest; -} - - void CONNECTIVITY_DATA::ClearDynamicRatsnest() { m_connAlgo->ForEachAnchor( [] (CN_ANCHOR_PTR anchor ) { anchor->SetNoLine( false ); } ); diff --git a/pcbnew/connectivity.h b/pcbnew/connectivity.h index 61c38398ad..0b5b86a653 100644 --- a/pcbnew/connectivity.h +++ b/pcbnew/connectivity.h @@ -183,8 +183,10 @@ public: */ void ComputeDynamicRatsnest( const std::vector& aItems ); - - const std::vector& GetDynamicRatsnest() const; + const std::vector& GetDynamicRatsnest() const + { + return m_dynamicRatsnest; + } /** * Function GetConnectedItems() diff --git a/pcbnew/ratsnest_data.cpp b/pcbnew/ratsnest_data.cpp index 535b390d74..119e6aceb6 100644 --- a/pcbnew/ratsnest_data.cpp +++ b/pcbnew/ratsnest_data.cpp @@ -429,12 +429,6 @@ bool RN_NET::NearestBicoloredPair( const RN_NET& aOtherNet, CN_ANCHOR_PTR& aNode } -unsigned int RN_NET::GetNodeCount() const -{ - return m_nodes.size(); -} - - void RN_NET::SetVisible( bool aEnabled ) { for( auto& edge : m_rnEdges ) diff --git a/pcbnew/ratsnest_data.h b/pcbnew/ratsnest_data.h index 65061f6916..6f860801bf 100644 --- a/pcbnew/ratsnest_data.h +++ b/pcbnew/ratsnest_data.h @@ -109,7 +109,10 @@ public: void AddCluster( std::shared_ptr aCluster ); - unsigned int GetNodeCount() const; + unsigned int GetNodeCount() const + { + return m_nodes.size(); + } /** * Function GetNodes()