diff --git a/packages/cli/src/cli/cfg.rs b/packages/cli/src/cli/cfg.rs index 687780228..2a441a1c8 100644 --- a/packages/cli/src/cli/cfg.rs +++ b/packages/cli/src/cli/cfg.rs @@ -101,13 +101,6 @@ pub enum Platform { Desktop, } -/// Ensure the given value for `--public-url` is formatted correctly. -pub fn parse_public_url(val: &str) -> String { - let prefix = if !val.starts_with('/') { "/" } else { "" }; - let suffix = if !val.ends_with('/') { "/" } else { "" }; - format!("{}{}{}", prefix, val, suffix) -} - /// Config options for the bundling system. #[derive(Clone, Debug, Default, Deserialize, Parser)] pub struct ConfigOptsBundle {