From ff3be92f22b74ac4c5c5d18a88eee1519e12db84 Mon Sep 17 00:00:00 2001 From: Dan Laine Date: Mon, 11 Mar 2024 16:44:29 -0400 Subject: [PATCH] remove unused type DiskWrite (#584) --- firewood/src/shale/mod.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/firewood/src/shale/mod.rs b/firewood/src/shale/mod.rs index b5971ddf7..ea7f4339b 100644 --- a/firewood/src/shale/mod.rs +++ b/firewood/src/shale/mod.rs @@ -51,22 +51,6 @@ pub struct ObjWriteSizeError; pub type SpaceId = u8; pub const INVALID_SPACE_ID: SpaceId = 0xff; -pub struct DiskWrite { - pub offset: u64, - pub data: Box<[u8]>, -} - -impl std::fmt::Debug for DiskWrite { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> { - write!( - f, - "[Disk offset=0x{:04x} data=0x{}", - self.offset, - hex::encode(&self.data) - ) - } -} - /// A handle that pins and provides a readable access to a portion of the linear memory image. pub trait CachedView { type DerefReturn: Deref;