Skip to content

Commit c7c7354

Browse files
committed
Strip dead code
1 parent b1a161a commit c7c7354

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

src/lib.rs

+1-17
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ use nix::unistd::close;
7474
#[cfg(feature = "use_tokio")]
7575
use pin_utils::unsafe_pinned;
7676
#[cfg(feature = "use_tokio")]
77-
use tokio::{io::PollEvented, runtime::Handle};
77+
use tokio::io::PollEvented;
7878

7979
pub use error::Error;
8080

@@ -482,22 +482,6 @@ impl Pin {
482482
PinStream::init(self.clone())
483483
}
484484

485-
/// Get a Stream of pin values for this pin
486-
///
487-
/// The PinStream object can be used with the `tokio` crate. You should probably call
488-
/// `set_edge(Edge::BothEdges)` before using this.
489-
///
490-
/// Note that the values produced are the value of the pin as soon as we get to handling the
491-
/// interrupt in userspace. Each time this stream produces a value, a change has occurred, but
492-
/// it could end up producing the same value multiple times if the value has changed back
493-
/// between when the interrupt occurred and when the value was read.
494-
///
495-
/// This method is only available when the `use_tokio` crate feature is enabled.
496-
#[cfg(feature = "use_tokio")]
497-
pub fn get_value_stream_with_handle(&self, _handle: &Handle) -> Result<PinValueStream> {
498-
Ok(PinValueStream::new(PinStream::init(self.clone())?))
499-
}
500-
501485
/// Get a Stream of pin values for this pin
502486
///
503487
/// The PinStream object can be used with the `tokio` crate. You should probably call

0 commit comments

Comments
 (0)