From b3925f779294bdc754d97d11edc50b5ba70a7952 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 7 Sep 2022 16:32:16 -0400 Subject: [PATCH] Debug code removal, cleanup --- core-crypto/src/zssp.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core-crypto/src/zssp.rs b/core-crypto/src/zssp.rs index ab29fcd9b..ed9bf4bde 100644 --- a/core-crypto/src/zssp.rs +++ b/core-crypto/src/zssp.rs @@ -269,7 +269,6 @@ pub struct ReceiveContext { } impl Session { - #[inline] pub fn new( host: &H, mut send: SendFunction, @@ -325,7 +324,6 @@ impl Session { return Err(Error::InvalidParameter); } - #[inline] pub fn send(&self, mut send: SendFunction, mtu_buffer: &mut [u8], mut data: &[u8]) -> Result<(), Error> { debug_assert!(mtu_buffer.len() >= MIN_MTU); let state = self.state.read(); @@ -386,7 +384,6 @@ impl Session { state.remote_session_id.is_some() && !state.keys.is_empty() } - #[inline] pub fn rekey_check(&self, host: &H, mut send: SendFunction, offer_metadata: &[u8], mtu: usize, current_time: i64, force: bool, jedi: bool) { let state = self.state.upgradable_read(); if let Some(key) = state.keys.front() { @@ -416,7 +413,6 @@ impl Session { } impl ReceiveContext { - #[inline] pub fn new(host: &H) -> Self { Self { initial_offer_defrag: Mutex::new(RingBufferMap::new(random::xorshift64_random() as u32)), @@ -424,7 +420,6 @@ impl ReceiveContext { } } - #[inline] pub fn receive<'a, SendFunction: FnMut(&mut [u8])>( &self, host: &H,