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:
paulhsia 2019-02-26 22:24:36 +08:00 committed by chrome-bot
parent 56497d23ad
commit 4547e30366

View file

@ -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