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,