From 88a7908f915347719bcbea990ea433efc23e14de Mon Sep 17 00:00:00 2001 From: hi-rustin Date: Tue, 13 Sep 2022 20:48:26 +0800 Subject: [PATCH] Remove dead code Signed-off-by: hi-rustin --- src/bin/cargo/cli.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/bin/cargo/cli.rs b/src/bin/cargo/cli.rs index 5d7fc66d37f..00e528d80f7 100644 --- a/src/bin/cargo/cli.rs +++ b/src/bin/cargo/cli.rs @@ -480,13 +480,6 @@ impl LazyConfig { Self { config: None } } - /// Check whether the config is loaded - /// - /// This is useful for asserts in case the environment needs to be setup before loading - pub fn is_init(&self) -> bool { - self.config.is_some() - } - /// Get the config, loading it if needed /// /// On error, the process is terminated