Skip to content

Commit

Permalink
net: remove unused CConnman::FindNode(const CSubNet&)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasild committed Oct 5, 2023
1 parent 0994d45 commit 2f3f793
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
11 changes: 0 additions & 11 deletions src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,17 +339,6 @@ CNode* CConnman::FindNode(const CNetAddr& ip)
return nullptr;
}

CNode* CConnman::FindNode(const CSubNet& subNet)
{
LOCK(m_nodes_mutex);
for (CNode* pnode : m_nodes) {
if (subNet.Match(static_cast<CNetAddr>(pnode->addr))) {
return pnode;
}
}
return nullptr;
}

CNode* CConnman::FindNode(const std::string& addrName)
{
LOCK(m_nodes_mutex);
Expand Down
1 change: 0 additions & 1 deletion src/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,6 @@ class CConnman
uint64_t CalculateKeyedNetGroup(const CAddress& ad) const;

CNode* FindNode(const CNetAddr& ip);
CNode* FindNode(const CSubNet& subNet);
CNode* FindNode(const std::string& addrName);
CNode* FindNode(const CService& addr);

Expand Down

0 comments on commit 2f3f793

Please sign in to comment.