From aaf2bf4bfbf90bed0b6e9812f337f057d1d24f93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 17 Sep 2024 02:13:34 +0100 Subject: chore: upgrade deno_core (#25674) No functional changes, just removes dead code. --- cli/factory.rs | 1 - cli/main.rs | 12 ------------ 2 files changed, 13 deletions(-) (limited to 'cli') diff --git a/cli/factory.rs b/cli/factory.rs index fe6d5b92a..6d14475b2 100644 --- a/cli/factory.rs +++ b/cli/factory.rs @@ -726,7 +726,6 @@ impl CliFactory { let cli_options = self.cli_options()?; let mut checker = FeatureChecker::default(); checker.set_exit_cb(Box::new(crate::unstable_exit_cb)); - checker.set_warn_cb(Box::new(crate::unstable_warn_cb)); let unstable_features = cli_options.unstable_features(); for granular_flag in crate::UNSTABLE_GRANULAR_FLAGS { if unstable_features.contains(&granular_flag.name.to_string()) { diff --git a/cli/main.rs b/cli/main.rs index 6a4fa6f9d..10d9ead4e 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -417,18 +417,6 @@ pub(crate) fn unstable_exit_cb(feature: &str, api_name: &str) { std::process::exit(70); } -// TODO(bartlomieju): remove when `--unstable` flag is removed. -#[allow(clippy::print_stderr)] -pub(crate) fn unstable_warn_cb(feature: &str, api_name: &str) { - eprintln!( - "⚠️ {}", - colors::yellow(format!( - "The `{}` API was used with `--unstable` flag. The `--unstable` flag is deprecated and will be removed in Deno 2.0. Use granular `--unstable-{}` instead.\nLearn more at: https://docs.deno.com/runtime/manual/tools/unstable_flags", - api_name, feature - )) - ); -} - pub fn main() { setup_panic_hook(); -- cgit v1.2.3