From 63bb5cc7582b646da485be3a0a9c9321181e32e4 Mon Sep 17 00:00:00 2001 From: Brian Donovan <1938+eventualbuddha@users.noreply.github.com> Date: Fri, 4 Aug 2023 13:52:49 -0700 Subject: [PATCH] chore(cli): remove unused function I believe that technically this function is part of the public API via `dioxus_cli::cli::cfg::parse_public_url`. However, I don't see any evidence that this function is actually used inside or outside this crate. The last use within the crate was removed in January 2022 (9bb10c65a3cbabef127f6af5c0d1eadab1d01531). --- packages/cli/src/cli/cfg.rs | 7 ------- 1 file changed, 7 deletions(-) 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 {