Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
read_initializer feature has already been removed.
  • Loading branch information
taiki-e committed Mar 11, 2023
1 parent d1acf08 commit 4b9dddf
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions futures-util/src/io/cursor.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use futures_core::task::{Context, Poll};
#[cfg(feature = "read_initializer")]
use futures_io::Initializer;
use futures_io::{AsyncBufRead, AsyncRead, AsyncSeek, AsyncWrite, IoSlice, IoSliceMut, SeekFrom};
use std::io;
use std::pin::Pin;
Expand Down Expand Up @@ -159,12 +157,6 @@ where
}

impl<T: AsRef<[u8]> + Unpin> AsyncRead for Cursor<T> {
#[cfg(feature = "read_initializer")]
#[inline]
unsafe fn initializer(&self) -> Initializer {
io::Read::initializer(&self.inner)
}

fn poll_read(
mut self: Pin<&mut Self>,
_cx: &mut Context<'_>,
Expand Down

0 comments on commit 4b9dddf

Please sign in to comment.