From 43ad18ccb1038b07194ee08f42cb714a7621ba36 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Sat, 9 Mar 2019 13:58:07 -0800 Subject: [PATCH] remove get_decoded --- router/src/path.rs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/router/src/path.rs b/router/src/path.rs index 4a4679db..c38a0a01 100644 --- a/router/src/path.rs +++ b/router/src/path.rs @@ -159,25 +159,6 @@ impl Path { } } -#[cfg(feature = "http")] -use std::borrow::Cow; - -#[cfg(feature = "http")] -impl Path { - /// Get URL-decoded matched parameter by name without type conversion - pub fn get_decoded(&self, key: &str) -> Option> { - use crate::url::RESERVED_QUOTER; - - self.get(key).map(|value| { - if let Some(value) = RESERVED_QUOTER.with(|q| q.requote(value.as_bytes())) { - Cow::Owned(value) - } else { - Cow::Borrowed(value) - } - }) - } -} - #[derive(Debug)] pub struct PathIter<'a, T> { idx: usize,