Remove from_cidr

This commit is contained in:
Abhishek Chanda
2016-12-17 15:48:22 +00:00
parent dd47d4d24c
commit c80c3682a8
2 changed files with 0 additions and 10 deletions

View File

@ -26,11 +26,6 @@ impl Ipv4Network {
} }
} }
#[deprecated(since="0.9.1", note="please use `String::parse()` instead")]
fn from_cidr(cidr: &str) -> Result<Ipv4Network, IpNetworkError> {
cidr.parse()
}
/// Returns an iterator over `Ipv4Network`. Each call to `next` will return the next /// Returns an iterator over `Ipv4Network`. Each call to `next` will return the next
/// `Ipv4Addr` in the given network. `None` will be returned when there are no more /// `Ipv4Addr` in the given network. `None` will be returned when there are no more
/// addresses. /// addresses.

View File

@ -28,11 +28,6 @@ impl Ipv6Network {
} }
} }
#[deprecated(since="0.9.1", note="please use `String::parse()` instead")]
fn from_cidr(cidr: &str) -> Result<Ipv6Network, IpNetworkError> {
cidr.parse()
}
pub fn ip(&self) -> Ipv6Addr { pub fn ip(&self) -> Ipv6Addr {
self.addr self.addr
} }