p2p: remove unused CompareOnionTimeConnected()

This commit is contained in:
Jon Atack 2021-06-11 12:08:09 +02:00
parent 787d46bb2a
commit 9e889e8a5c
No known key found for this signature in database
GPG Key ID: 4F5721B3D0E3921D

View File

@ -848,12 +848,6 @@ static bool CompareLocalHostTimeConnected(const NodeEvictionCandidate &a, const
return a.nTimeConnected > b.nTimeConnected;
}
static bool CompareOnionTimeConnected(const NodeEvictionCandidate& a, const NodeEvictionCandidate& b)
{
if (a.m_is_onion != b.m_is_onion) return b.m_is_onion;
return a.nTimeConnected > b.nTimeConnected;
}
static bool CompareNetGroupKeyed(const NodeEvictionCandidate &a, const NodeEvictionCandidate &b) {
return a.nKeyedNetGroup < b.nKeyedNetGroup;
}