net: remove unused CConnman::FindNode(const CSubNet&)

This commit is contained in:
Vasil Dimov 2023-02-07 16:19:31 +01:00
parent 9482cb780f
commit 0e6f6ebc06
No known key found for this signature in database
GPG key ID: 54DF06F64B55CBBF
2 changed files with 0 additions and 12 deletions

View file

@ -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);

View file

@ -1329,7 +1329,6 @@ private:
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);