Skip to content

Commit 9e889e8

Browse files
committed
p2p: remove unused CompareOnionTimeConnected()
1 parent 787d46b commit 9e889e8

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
@@ -848,12 +848,6 @@ static bool CompareLocalHostTimeConnected(const NodeEvictionCandidate &a, const
848848
return a.nTimeConnected > b.nTimeConnected;
849849
}
850850

851-
static bool CompareOnionTimeConnected(const NodeEvictionCandidate& a, const NodeEvictionCandidate& b)
852-
{
853-
if (a.m_is_onion != b.m_is_onion) return b.m_is_onion;
854-
return a.nTimeConnected > b.nTimeConnected;
855-
}
856-
857851
static bool CompareNetGroupKeyed(const NodeEvictionCandidate &a, const NodeEvictionCandidate &b) {
858852
return a.nKeyedNetGroup < b.nKeyedNetGroup;
859853
}

0 commit comments

Comments
 (0)