diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2023-02-07 16:19:31 +0100 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2023-10-16 12:59:47 +0200 |
commit | 0e6f6ebc064c5fb425fc3699efe760ec6cd4b6af (patch) | |
tree | 45af7b2789a3a5dbe51b8edc51981543252a1bc4 | |
parent | 9482cb780fe04c1f1d9050edd1b8e549e52c86ce (diff) |
net: remove unused CConnman::FindNode(const CSubNet&)
-rw-r--r-- | src/net.cpp | 11 | ||||
-rw-r--r-- | src/net.h | 1 |
2 files changed, 0 insertions, 12 deletions
diff --git a/src/net.cpp b/src/net.cpp index cc4c676822..fecb4205ff 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -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); @@ -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); |