7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-20 22:51:41 +00:00

Remove unused CN_ITEM m_visited

Visited flag should not be stored in the item itself
since these items are used in parallelized code and
the visited state should remain local to the thread
This commit is contained in:
Jon Evans 2025-03-01 10:43:04 -05:00
parent 51f56ab31c
commit e44eed6e6b

View File

@ -138,7 +138,6 @@ public:
{
m_parent = aParent;
m_canChangeNet = aCanChangeNet;
m_visited = false;
m_valid = true;
m_dirty = true;
m_anchors.reserve( std::max( 6, aAnchorCount ) );
@ -232,9 +231,6 @@ public:
const std::vector<CN_ITEM*>& ConnectedItems() const { return m_connected; }
void ClearConnections() { m_connected.clear(); }
void SetVisited( bool aVisited ) { m_visited = aVisited; }
bool Visited() const { return m_visited; }
bool CanChangeNet() const { return m_canChangeNet; }
void Connect( CN_ITEM* b )
@ -274,7 +270,6 @@ private:
bool m_canChangeNet; ///< can the net propagator modify the netcode?
bool m_visited; ///< visited flag for the BFS scan
bool m_valid; ///< used to identify garbage items (we use lazy removal)
std::mutex m_listLock; ///< mutex protecting this item's connected_items set to