diff options
author | Jon Atack <jon@atack.com> | 2021-06-11 12:08:09 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2021-06-14 13:58:01 +0200 |
commit | 9e889e8a5c021b0ec7e4c4d17d418ab4a0accad4 (patch) | |
tree | 312b1193d503075e141960a17dfa46e7c841231a /src | |
parent | 787d46bb2a39fb39166882cc6e0afbc34424d88e (diff) |
p2p: remove unused CompareOnionTimeConnected()
Diffstat (limited to 'src')
-rw-r--r-- | src/net.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/net.cpp b/src/net.cpp index b69a59fc1d..7e5c3806c1 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -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; } |