From 74f0f38074487fe4e2893104e99294ada66d9d58 Mon Sep 17 00:00:00 2001 From: Sergio Lopez Date: Wed, 11 Sep 2024 04:28:47 +0200 Subject: [PATCH] virtio/fs/macos: drop dead code Drop LinuxDirent64 struct we're no longer using. Signed-off-by: Sergio Lopez --- src/devices/src/virtio/fs/macos/passthrough.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/devices/src/virtio/fs/macos/passthrough.rs b/src/devices/src/virtio/fs/macos/passthrough.rs index 123ecf1e..501e5bec 100644 --- a/src/devices/src/virtio/fs/macos/passthrough.rs +++ b/src/devices/src/virtio/fs/macos/passthrough.rs @@ -68,16 +68,6 @@ struct HandleData { dirstream: Mutex, } -#[repr(C, packed)] -#[derive(Clone, Copy, Debug, Default)] -struct LinuxDirent64 { - d_ino: bindings::ino64_t, - d_off: bindings::off64_t, - d_reclen: libc::c_ushort, - d_ty: libc::c_uchar, -} -unsafe impl ByteValued for LinuxDirent64 {} - fn ebadf() -> io::Error { linux_error(io::Error::from_raw_os_error(libc::EBADF)) }