From feb9085b8945bac2ca4a26632af36a399e5bd691 Mon Sep 17 00:00:00 2001 From: omjadas Date: Fri, 5 Jan 2024 16:20:20 +1100 Subject: [PATCH] refactor: remove dead code from Rewind --- src/rewind.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/rewind.rs b/src/rewind.rs index 5af5afb..2f43122 100644 --- a/src/rewind.rs +++ b/src/rewind.rs @@ -31,21 +31,6 @@ impl Rewind { inner: io, } } - - #[allow(dead_code)] - pub(crate) fn rewind(&mut self, bs: Bytes) { - debug_assert!(self.pre.is_none()); - self.pre = Some(bs); - } - - #[allow(dead_code)] - pub(crate) fn into_inner(self) -> (T, Bytes) { - (self.inner, self.pre.unwrap_or_else(Bytes::new)) - } - - // pub(crate) fn get_mut(&mut self) -> &mut T { - // &mut self.inner - // } } impl AsyncRead for Rewind