From 882007f8274a3e68fe0672e701dcdbd7a54348a3 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sat, 28 Mar 2026 23:30:08 +0100 Subject: [PATCH] Remove unused UserSlice::read_u64 This fixes a warning. It can always be re-introduced if we ever need it. --- src/syscall/usercopy.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/syscall/usercopy.rs b/src/syscall/usercopy.rs index 83cdac1424..834b7d2591 100644 --- a/src/syscall/usercopy.rs +++ b/src/syscall/usercopy.rs @@ -144,13 +144,6 @@ impl UserSlice { .copy_to_slice(&mut ret)?; Ok(u32::from_ne_bytes(ret)) } - pub fn read_u64(self) -> Result { - let mut ret = 0_u64.to_ne_bytes(); - self.limit(8) - .ok_or(Error::new(EINVAL))? - .copy_to_slice(&mut ret)?; - Ok(u64::from_ne_bytes(ret)) - } pub fn usizes(self) -> impl Iterator> { self.in_exact_chunks(core::mem::size_of::()) .map(Self::read_usize)