diff --git a/src/extensions/idle.rs b/src/extensions/idle.rs index de9ca8b..02edcd3 100644 --- a/src/extensions/idle.rs +++ b/src/extensions/idle.rs @@ -234,16 +234,6 @@ impl<'a, T: SetReadTimeout + Read + Write + 'a> Handle<'a, T> { self.timed_wait(keepalive, true, callback).map(|_| ()) } - /// Block until the given amount of time has elapsed, or the given callback - /// returns `Stop`, or until an unhandled response arrives on the IDLE channel. - #[deprecated(note = "use wait_with_timeout instead")] - pub fn wait_timeout(self, timeout: Duration, callback: F) -> Result<()> - where - F: FnMut(UnsolicitedResponse) -> CallbackAction, - { - self.wait_with_timeout(timeout, callback).map(|_| ()) - } - /// Block until the given amount of time has elapsed, or the given callback /// returns `Stop`, or until an unhandled response arrives on the IDLE channel. pub fn wait_with_timeout(self, timeout: Duration, callback: F) -> Result