Skip to content

Commit 0e6f6eb

Browse files
committedOct 16, 2023
net: remove unused CConnman::FindNode(const CSubNet&)
1 parent 9482cb7 commit 0e6f6eb

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed
 

‎src/net.cpp

-11
Original file line numberDiff line numberDiff line change
@@ -339,17 +339,6 @@ CNode* CConnman::FindNode(const CNetAddr& ip)
339339
return nullptr;
340340
}
341341

342-
CNode* CConnman::FindNode(const CSubNet& subNet)
343-
{
344-
LOCK(m_nodes_mutex);
345-
for (CNode* pnode : m_nodes) {
346-
if (subNet.Match(static_cast<CNetAddr>(pnode->addr))) {
347-
return pnode;
348-
}
349-
}
350-
return nullptr;
351-
}
352-
353342
CNode* CConnman::FindNode(const std::string& addrName)
354343
{
355344
LOCK(m_nodes_mutex);

‎src/net.h

-1
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,6 @@ class CConnman
13291329
uint64_t CalculateKeyedNetGroup(const CAddress& ad) const;
13301330

13311331
CNode* FindNode(const CNetAddr& ip);
1332-
CNode* FindNode(const CSubNet& subNet);
13331332
CNode* FindNode(const std::string& addrName);
13341333
CNode* FindNode(const CService& addr);
13351334

0 commit comments

Comments
 (0)
Please sign in to comment.