diff --git a/src/uucore/src/lib/features/pipes.rs b/src/uucore/src/lib/features/pipes.rs index 5ac590b7b4a..069736c5215 100644 --- a/src/uucore/src/lib/features/pipes.rs +++ b/src/uucore/src/lib/features/pipes.rs @@ -7,8 +7,6 @@ use std::fs::File; #[cfg(any(target_os = "linux", target_os = "android"))] -use std::io::IoSlice; -#[cfg(any(target_os = "linux", target_os = "android"))] use std::os::fd::AsFd; #[cfg(any(target_os = "linux", target_os = "android"))] @@ -54,11 +52,3 @@ pub fn splice_exact(source: &impl AsFd, target: &impl AsFd, len: usize) -> Resul } Ok(()) } - -/// Copy data from `bytes` into `target`, which must be a pipe. -/// -/// Returns the number of successfully copied bytes. -#[cfg(any(target_os = "linux", target_os = "android"))] -pub fn vmsplice(target: &impl AsFd, bytes: &[u8]) -> Result { - nix::fcntl::vmsplice(target, &[IoSlice::new(bytes)], SpliceFFlags::empty()) -}