Skip to content

Commit

Permalink
remove unused type DiskWrite (#584)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Laine authored Mar 11, 2024
1 parent 8f6b8b7 commit ff3be92
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions firewood/src/shale/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Target = [u8]>;
Expand Down

0 comments on commit ff3be92

Please sign in to comment.