Skip to content

Commit 310fab4

Browse files
committed
p2p: remove unused CompareLocalHostTimeConnected()
1 parent 9e889e8 commit 310fab4

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/net.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -842,12 +842,6 @@ static bool ReverseCompareNodeTimeConnected(const NodeEvictionCandidate &a, cons
842842
return a.nTimeConnected > b.nTimeConnected;
843843
}
844844

845-
static bool CompareLocalHostTimeConnected(const NodeEvictionCandidate &a, const NodeEvictionCandidate &b)
846-
{
847-
if (a.m_is_local != b.m_is_local) return b.m_is_local;
848-
return a.nTimeConnected > b.nTimeConnected;
849-
}
850-
851845
static bool CompareNetGroupKeyed(const NodeEvictionCandidate &a, const NodeEvictionCandidate &b) {
852846
return a.nKeyedNetGroup < b.nKeyedNetGroup;
853847
}

0 commit comments

Comments
 (0)