Skip to content

Commit c6a57bb

Browse files
oech3cakebaker
authored andcommitted
uucore: drop an unused function
1 parent 3924d09 commit c6a57bb

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/uucore/src/lib/features/pipes.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
88
use std::fs::File;
99
#[cfg(any(target_os = "linux", target_os = "android"))]
10-
use std::io::IoSlice;
11-
#[cfg(any(target_os = "linux", target_os = "android"))]
1210
use std::os::fd::AsFd;
1311

1412
#[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
5452
}
5553
Ok(())
5654
}
57-
58-
/// Copy data from `bytes` into `target`, which must be a pipe.
59-
///
60-
/// Returns the number of successfully copied bytes.
61-
#[cfg(any(target_os = "linux", target_os = "android"))]
62-
pub fn vmsplice(target: &impl AsFd, bytes: &[u8]) -> Result<usize> {
63-
nix::fcntl::vmsplice(target, &[IoSlice::new(bytes)], SpliceFFlags::empty())
64-
}

0 commit comments

Comments
 (0)