diff --git a/sys_util/src/net.rs b/sys_util/src/net.rs index 4a88ebc7df..4c6faf56d3 100644 --- a/sys_util/src/net.rs +++ b/sys_util/src/net.rs @@ -150,18 +150,6 @@ impl UnixSeqpacket { } } - #[deprecated] - /// Alias for `send`. - pub fn write(&self, buf: &[u8]) -> io::Result { - self.send(buf) - } - - #[deprecated] - /// Alias for `recv`. - pub fn read(&self, buf: &mut [u8]) -> io::Result { - self.recv(buf) - } - /// Write data from a given buffer to the socket fd /// /// # Arguments