From c80ef7abf646baa5a53c3ebdee16932035838b02 Mon Sep 17 00:00:00 2001 From: andres Date: Fri, 14 Jun 2024 15:52:48 -0500 Subject: [PATCH] chore: remove unused code --- src/readwrite.rs | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/readwrite.rs b/src/readwrite.rs index dfc61e8..f3e30af 100644 --- a/src/readwrite.rs +++ b/src/readwrite.rs @@ -1,28 +1,6 @@ #[cfg(feature = "binary")] use flate2::{read::ZlibDecoder, write::ZlibEncoder, Compression}; -#[cfg(feature = "binary")] -struct Base64Safe(W); - -#[cfg(feature = "binary")] -impl std::io::Write for Base64Safe { - fn write(&mut self, buf: &[u8]) -> std::io::Result { - self.0.write(buf) - } - fn write_all(&mut self, buf: &[u8]) -> std::io::Result<()> { - if let Err(e) = self.0.write_all(buf) { - match e.kind() { - std::io::ErrorKind::WriteZero => return Ok(()), - _ => return Err(e), - } - } - Ok(()) - } - fn flush(&mut self) -> std::io::Result<()> { - self.0.flush() - } -} - macro_rules! impl_read_write { // `()` indicates that the macro takes no argument. ($struct:ty) => {