From c80c3682a861f2bef6d3c9043ce8ffa59838284b Mon Sep 17 00:00:00 2001 From: Abhishek Chanda Date: Sat, 17 Dec 2016 15:48:22 +0000 Subject: [PATCH] Remove from_cidr --- src/ipv4.rs | 5 ----- src/ipv6.rs | 5 ----- 2 files changed, 10 deletions(-) diff --git a/src/ipv4.rs b/src/ipv4.rs index 4bbd77c..d067eab 100644 --- a/src/ipv4.rs +++ b/src/ipv4.rs @@ -26,11 +26,6 @@ impl Ipv4Network { } } - #[deprecated(since="0.9.1", note="please use `String::parse()` instead")] - fn from_cidr(cidr: &str) -> Result { - cidr.parse() - } - /// 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 /// addresses. diff --git a/src/ipv6.rs b/src/ipv6.rs index a6fb2ae..0f2acfa 100644 --- a/src/ipv6.rs +++ b/src/ipv6.rs @@ -28,11 +28,6 @@ impl Ipv6Network { } } - #[deprecated(since="0.9.1", note="please use `String::parse()` instead")] - fn from_cidr(cidr: &str) -> Result { - cidr.parse() - } - pub fn ip(&self) -> Ipv6Addr { self.addr }