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