diff --git a/src/utils.rs b/src/utils.rs index 2a513f2..50a0cbd 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -17,11 +17,3 @@ pub fn path_from_url(url: &str) -> String { url.splitn(4, '/').last().unwrap().to_owned() } -pub fn ensure_path_prefix(prefix: &'static str, path: &str) -> String { - let path = path.trim_start_matches('/'); - if path.starts_with(prefix) { - path.to_string() - } else { - format!("{}/{}", prefix, path) - } -}