From 0e6f6ebc064c5fb425fc3699efe760ec6cd4b6af Mon Sep 17 00:00:00 2001 From: Vasil Dimov Date: Tue, 7 Feb 2023 16:19:31 +0100 Subject: [PATCH] net: remove unused CConnman::FindNode(const CSubNet&) --- src/net.cpp | 11 ----------- src/net.h | 1 - 2 files changed, 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(pnode->addr))) { - return pnode; - } - } - return nullptr; -} - CNode* CConnman::FindNode(const std::string& addrName) { LOCK(m_nodes_mutex); diff --git a/src/net.h b/src/net.h index b6095ec53b..ddee34168a 100644 --- a/src/net.h +++ b/src/net.h @@ -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);