summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/factory.rs1
-rw-r--r--cli/main.rs12
2 files changed, 0 insertions, 13 deletions
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();