mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
sys_util: remove deprecated functions
Remove `write` and `read` after the only user in CL:1488597 change its usage. TEST=cargo test -p sys_util BUG=chromium:848187 CQ-DEPEND=CL:1488597 Change-Id: I15e03077f8970ea8350c7f64de9b64b16a08bfc1 Reviewed-on: https://chromium-review.googlesource.com/1488553 Commit-Ready: Chih-Yang Hsia <paulhsia@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Tested-by: Chih-Yang Hsia <paulhsia@chromium.org> Reviewed-by: Chih-Yang Hsia <paulhsia@chromium.org> Reviewed-by: Zach Reizner <zachr@chromium.org>
This commit is contained in:
parent
56497d23ad
commit
4547e30366
1 changed files with 0 additions and 12 deletions
|
@ -150,18 +150,6 @@ impl UnixSeqpacket {
|
|||
}
|
||||
}
|
||||
|
||||
#[deprecated]
|
||||
/// Alias for `send`.
|
||||
pub fn write(&self, buf: &[u8]) -> io::Result<usize> {
|
||||
self.send(buf)
|
||||
}
|
||||
|
||||
#[deprecated]
|
||||
/// Alias for `recv`.
|
||||
pub fn read(&self, buf: &mut [u8]) -> io::Result<usize> {
|
||||
self.recv(buf)
|
||||
}
|
||||
|
||||
/// Write data from a given buffer to the socket fd
|
||||
///
|
||||
/// # Arguments
|
||||
|
|
Loading…
Reference in a new issue