From 3592cf032d812d3306f04766c22e890b508ad16e Mon Sep 17 00:00:00 2001 From: Darius Date: Wed, 29 Nov 2023 21:13:24 -0500 Subject: [PATCH] chore: Remove getter function --- misc/connection-limits/src/lib.rs | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/misc/connection-limits/src/lib.rs b/misc/connection-limits/src/lib.rs index b63d97596a3..ad475bf72cf 100644 --- a/misc/connection-limits/src/lib.rs +++ b/misc/connection-limits/src/lib.rs @@ -205,32 +205,6 @@ impl ConnectionLimits { } } -impl ConnectionLimits { - pub fn max_pending_incoming(&self) -> Option { - self.max_pending_incoming - } - - pub fn max_pending_outgoing(&self) -> Option { - self.max_pending_outgoing - } - - pub fn max_established_incoming(&self) -> Option { - self.max_established_incoming - } - - pub fn max_established_outgoing(&self) -> Option { - self.max_established_outgoing - } - - pub fn max_established(&self) -> Option { - self.max_established_total - } - - pub fn max_established_per_peer(&self) -> Option { - self.max_established_per_peer - } -} - impl NetworkBehaviour for Behaviour { type ConnectionHandler = dummy::ConnectionHandler; type ToSwarm = Void;