Delete more dead code

This commit is contained in:
Stjepan Glavina 2020-06-21 18:34:23 +02:00
parent bb75ee645c
commit 0e93b92744
2 changed files with 0 additions and 16 deletions

View File

@ -218,11 +218,6 @@ impl<T: IntoRawSocket> IntoRawSocket for Async<T> {
}
impl<T> Async<T> {
/// Re-registers the I/O event to wake the poller.
pub(crate) fn reregister_io_event(&self) -> io::Result<()> {
self.source.reregister_io_event()
}
/// Gets a reference to the inner I/O handle.
///
/// # Examples

View File

@ -365,15 +365,6 @@ struct Wakers {
}
impl Source {
/// Re-registers the I/O event to wake the poller.
pub(crate) fn reregister_io_event(&self) -> io::Result<()> {
let wakers = self.wakers.lock();
Reactor::get()
.sys
.reregister(self.raw, self.key, true, !wakers.writers.is_empty())?;
Ok(())
}
/// Waits until the I/O source is readable.
pub(crate) async fn readable(&self) -> io::Result<()> {
let mut ticks = None;
@ -472,8 +463,6 @@ mod sys {
use std::os::unix::io::RawFd;
use std::time::Duration;
use once_cell::sync::Lazy;
use crate::sys::epoll::{
epoll_create1, epoll_ctl, epoll_wait, EpollEvent, EpollFlags, EpollOp,
};