diff --git a/src/utils.rs b/src/utils.rs index 2a513f2..a4c2ee7 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -16,12 +16,3 @@ pub fn borrowed_u8_eq(a: &u8, b: &u8) -> bool { 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) - } -}