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::*;