From 93db1fa2177ae41d3e4bd7aa37381f42ba99757f Mon Sep 17 00:00:00 2001 From: Yong Wen Chua Date: Tue, 18 Dec 2018 16:08:48 +0800 Subject: [PATCH] Remove deprecated function --- src/lib.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 6327c77..cdd948b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -717,17 +717,6 @@ impl AllOrSome { } } -impl AllOrSome> { - #[deprecated(since = "0.1.3", note = "please use `AllowedOrigins::Some` instead")] - /// New `AllOrSome` from a list of URL strings. - /// Returns a tuple where the first element is the struct `AllOrSome`, - /// and the second element - /// is a map of strings which failed to parse into URLs and their associated parse errors. - pub fn new_from_str_list(urls: &[&str]) -> (Self, HashMap) { - AllowedOrigins::some(urls) - } -} - /// A wrapper type around `rocket::http::Method` to support serialization and deserialization #[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)] pub struct Method(http::Method);