mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-26 00:00:16 +02:00
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:
committed by
Alex Crichton
parent
31f8cb9467
commit
0b54557796
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user