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)