diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-08-11 17:27:05 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-08-12 14:55:17 -0700 |
| commit | 8d90d3f36871a00023cc1f313f91e351c287ca15 (patch) | |
| tree | 2d9b616a2468117aa3afe1f6b1f910ff3116776b /src/libstd/net/udp.rs | |
| parent | d07d465cf60033e35eba16b9e431471d54c712f4 (diff) | |
| download | rust-8d90d3f36871a00023cc1f313f91e351c287ca15.tar.gz rust-8d90d3f36871a00023cc1f313f91e351c287ca15.zip | |
Remove all unstable deprecated functionality
This commit removes all unstable and deprecated functions in the standard library. A release was recently cut (1.3) which makes this a good time for some spring cleaning of the deprecated functions.
Diffstat (limited to 'src/libstd/net/udp.rs')
| -rw-r--r-- | src/libstd/net/udp.rs | 52 |
1 files changed, 1 insertions, 51 deletions
diff --git a/src/libstd/net/udp.rs b/src/libstd/net/udp.rs index 1e1ffc19900..20ce344be4f 100644 --- a/src/libstd/net/udp.rs +++ b/src/libstd/net/udp.rs @@ -13,7 +13,7 @@ use fmt; use io::{self, Error, ErrorKind}; -use net::{ToSocketAddrs, SocketAddr, IpAddr}; +use net::{ToSocketAddrs, SocketAddr}; use sys_common::net as net_imp; use sys_common::{AsInner, FromInner, IntoInner}; use time::Duration; @@ -95,56 +95,6 @@ impl UdpSocket { self.0.duplicate().map(UdpSocket) } - /// Sets the broadcast flag on or off. - #[deprecated(since = "1.3.0", - reason = "available through the `net2` crate on crates.io")] - #[unstable(feature = "udp_extras", reason = "available externally")] - pub fn set_broadcast(&self, on: bool) -> io::Result<()> { - self.0.set_broadcast(on) - } - - /// Sets the multicast loop flag to the specified value. - /// - /// This lets multicast packets loop back to local sockets (if enabled) - #[deprecated(since = "1.3.0", - reason = "available through the `net2` crate on crates.io")] - #[unstable(feature = "udp_extras", reason = "available externally")] - pub fn set_multicast_loop(&self, on: bool) -> io::Result<()> { - self.0.set_multicast_loop(on) - } - - /// Joins a multicast IP address (becomes a member of it). - #[deprecated(since = "1.3.0", - reason = "available through the `net2` crate on crates.io")] - #[unstable(feature = "udp_extras", reason = "available externally")] - pub fn join_multicast(&self, multi: &IpAddr) -> io::Result<()> { - self.0.join_multicast(multi) - } - - /// Leaves a multicast IP address (drops membership from it). - #[deprecated(since = "1.3.0", - reason = "available through the `net2` crate on crates.io")] - #[unstable(feature = "udp_extras", reason = "available externally")] - pub fn leave_multicast(&self, multi: &IpAddr) -> io::Result<()> { - self.0.leave_multicast(multi) - } - - /// Sets the multicast TTL. - #[deprecated(since = "1.3.0", - reason = "available through the `net2` crate on crates.io")] - #[unstable(feature = "udp_extras", reason = "available externally")] - pub fn set_multicast_time_to_live(&self, ttl: i32) -> io::Result<()> { - self.0.multicast_time_to_live(ttl) - } - - /// Sets this socket's TTL. - #[deprecated(since = "1.3.0", - reason = "available through the `net2` crate on crates.io")] - #[unstable(feature = "udp_extras", reason = "available externally")] - pub fn set_time_to_live(&self, ttl: i32) -> io::Result<()> { - self.0.time_to_live(ttl) - } - /// Sets the read timeout to the timeout specified. /// /// If the value specified is `None`, then `read` calls will block |
