mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-26 00:41:23 +02:00
p2p: remove unused CompareLocalHostTimeConnected()
This commit is contained in:
parent
9e889e8a5c
commit
310fab4928
@ -842,12 +842,6 @@ static bool ReverseCompareNodeTimeConnected(const NodeEvictionCandidate &a, cons
|
|||||||
return a.nTimeConnected > b.nTimeConnected;
|
return a.nTimeConnected > b.nTimeConnected;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool CompareLocalHostTimeConnected(const NodeEvictionCandidate &a, const NodeEvictionCandidate &b)
|
|
||||||
{
|
|
||||||
if (a.m_is_local != b.m_is_local) return b.m_is_local;
|
|
||||||
return a.nTimeConnected > b.nTimeConnected;
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool CompareNetGroupKeyed(const NodeEvictionCandidate &a, const NodeEvictionCandidate &b) {
|
static bool CompareNetGroupKeyed(const NodeEvictionCandidate &a, const NodeEvictionCandidate &b) {
|
||||||
return a.nKeyedNetGroup < b.nKeyedNetGroup;
|
return a.nKeyedNetGroup < b.nKeyedNetGroup;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user