net: remove unused CConnman::FindNode(const CSubNet&)
This commit is contained in:
2 files changed
-12
No files matched your search
-11
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user