Remove unused code (#44)

* remove unused #[macro_use] and #[allow(unused_macros)]

* remove unused FnBox trait

* remove unused temporary variable

* remove Evented trait requirement to implement Debug
This commit is contained in:
Thomas de Zeeuw
2017-12-01 15:34:03 -06:00
committed by Alex Crichton
parent 31f8cb9467
commit 0b54557796
5 changed files with 2 additions and 16 deletions
-10
View File
@@ -360,16 +360,6 @@ impl Notify for MySetReadiness {
}
}
trait FnBox: Send + 'static {
fn call_box(self: Box<Self>, lp: &Core);
}
impl<F: FnOnce(&Core) + Send + 'static> FnBox for F {
fn call_box(self: Box<Self>, lp: &Core) {
(*self)(lp)
}
}
fn read_ready() -> mio::Ready {
mio::Ready::readable() | platform::hup()
}