From 7f08a098e2cca86e033506aea9b34115e6ff256f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Tue, 4 Mar 2025 17:26:11 +0400 Subject: [PATCH] refactor(pdu): drop legacy trait MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc-André Lureau --- crates/ironrdp-pdu/src/lib.rs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/crates/ironrdp-pdu/src/lib.rs b/crates/ironrdp-pdu/src/lib.rs index 3cc17e15..5cf44d91 100644 --- a/crates/ironrdp-pdu/src/lib.rs +++ b/crates/ironrdp-pdu/src/lib.rs @@ -218,23 +218,6 @@ impl PduHint for FastPathHint { } } -pub use legacy::*; - -// TODO: Delete these traits at some point -mod legacy { - - pub trait PduBufferParsing<'a>: Sized { - type Error; - - fn from_buffer(mut buffer: &'a [u8]) -> Result { - Self::from_buffer_consume(&mut buffer) - } - fn from_buffer_consume(buffer: &mut &'a [u8]) -> Result; - fn to_buffer_consume(&self, buffer: &mut &mut [u8]) -> Result<(), Self::Error>; - fn buffer_length(&self) -> usize; - } -} - // Private! Used by the macros. #[doc(hidden)] pub use ironrdp_core;