Remove now unused UdpSocketNew

See https://github.com/tokio-rs/tokio-core/issues/15#issuecomment-245552463
This commit is contained in:
Sebastian Dröge 2016-09-09 19:23:42 +03:00
parent 8f92dc9d56
commit ab5025a8b7
2 changed files with 1 additions and 15 deletions

View File

@ -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;

View File

@ -13,11 +13,6 @@ pub struct UdpSocket {
io: PollEvented<mio::udp::UdpSocket>,
}
/// Future returned from `UdpSocket::bind` which will resolve to a `UdpSocket`.
pub struct UdpSocketNew {
inner: IoFuture<UdpSocket>,
}
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<UdpSocket, io::Error> {
self.inner.poll()
}
}
#[cfg(unix)]
mod sys {
use std::os::unix::prelude::*;