diff options
Diffstat (limited to 'tokio/src/io/split.rs')
-rw-r--r-- | tokio/src/io/split.rs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tokio/src/io/split.rs b/tokio/src/io/split.rs index dcd3da20..fd3273ee 100644 --- a/tokio/src/io/split.rs +++ b/tokio/src/io/split.rs @@ -6,7 +6,6 @@ use crate::io::{AsyncRead, AsyncWrite, ReadBuf}; -use bytes::{Buf, BufMut}; use std::cell::UnsafeCell; use std::fmt; use std::io; @@ -107,15 +106,6 @@ impl<T: AsyncRead> AsyncRead for ReadHalf<T> { let mut inner = ready!(self.inner.poll_lock(cx)); inner.stream_pin().poll_read(cx, buf) } - - fn poll_read_buf<B: BufMut>( - self: Pin<&mut Self>, - cx: &mut Context<'_>, - buf: &mut B, - ) -> Poll<io::Result<usize>> { - let mut inner = ready!(self.inner.poll_lock(cx)); - inner.stream_pin().poll_read_buf(cx, buf) - } } impl<T: AsyncWrite> AsyncWrite for WriteHalf<T> { @@ -137,15 +127,6 @@ impl<T: AsyncWrite> AsyncWrite for WriteHalf<T> { let mut inner = ready!(self.inner.poll_lock(cx)); inner.stream_pin().poll_shutdown(cx) } - - fn poll_write_buf<B: Buf>( - self: Pin<&mut Self>, - cx: &mut Context<'_>, - buf: &mut B, - ) -> Poll<Result<usize, io::Error>> { - let mut inner = ready!(self.inner.poll_lock(cx)); - inner.stream_pin().poll_write_buf(cx, buf) - } } impl<T> Inner<T> { |