From ab5025a8b7c5b4fe55530307ebb329f7795ace82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 9 Sep 2016 19:23:42 +0300 Subject: [PATCH] Remove now unused UdpSocketNew See https://github.com/tokio-rs/tokio-core/issues/15#issuecomment-245552463 --- src/net/mod.rs | 2 +- src/net/udp.rs | 14 -------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/net/mod.rs b/src/net/mod.rs index 56d43c4c9..159985c49 100644 --- a/src/net/mod.rs +++ b/src/net/mod.rs @@ -8,4 +8,4 @@ mod udp; pub use self::tcp::{TcpStream, TcpStreamNew}; pub use self::tcp::{TcpListener, Incoming}; -pub use self::udp::{UdpSocket, UdpSocketNew}; +pub use self::udp::UdpSocket; diff --git a/src/net/udp.rs b/src/net/udp.rs index a3ef6f30e..8062acf84 100644 --- a/src/net/udp.rs +++ b/src/net/udp.rs @@ -13,11 +13,6 @@ pub struct UdpSocket { io: PollEvented, } -/// Future returned from `UdpSocket::bind` which will resolve to a `UdpSocket`. -pub struct UdpSocketNew { - inner: IoFuture, -} - impl UdpSocket { /// Create a new UDP socket bound to the specified address. /// @@ -257,15 +252,6 @@ impl fmt::Debug for UdpSocket { } } -impl Future for UdpSocketNew { - type Item = UdpSocket; - type Error = io::Error; - - fn poll(&mut self) -> Poll { - self.inner.poll() - } -} - #[cfg(unix)] mod sys { use std::os::unix::prelude::*;