mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 23:09:44 -04:00
net: remove unused CConnman::FindNode(const CSubNet&)
This commit is contained in:
parent
9482cb780f
commit
0e6f6ebc06
2 changed files with 0 additions and 12 deletions
11
src/net.cpp
11
src/net.cpp
|
@ -339,17 +339,6 @@ CNode* CConnman::FindNode(const CNetAddr& ip)
|
||||||
return nullptr;
|
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)
|
CNode* CConnman::FindNode(const std::string& addrName)
|
||||||
{
|
{
|
||||||
LOCK(m_nodes_mutex);
|
LOCK(m_nodes_mutex);
|
||||||
|
|
|
@ -1329,7 +1329,6 @@ private:
|
||||||
uint64_t CalculateKeyedNetGroup(const CAddress& ad) const;
|
uint64_t CalculateKeyedNetGroup(const CAddress& ad) const;
|
||||||
|
|
||||||
CNode* FindNode(const CNetAddr& ip);
|
CNode* FindNode(const CNetAddr& ip);
|
||||||
CNode* FindNode(const CSubNet& subNet);
|
|
||||||
CNode* FindNode(const std::string& addrName);
|
CNode* FindNode(const std::string& addrName);
|
||||||
CNode* FindNode(const CService& addr);
|
CNode* FindNode(const CService& addr);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue