chore: upgrade deno_core (#25674)

No functional changes, just removes dead code.
This commit is contained in:
Bartek Iwańczuk 2024-09-17 02:13:34 +01:00 committed by GitHub
parent 01b5dfd9ea
commit aaf2bf4bfb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 15 additions and 44 deletions

View file

@ -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();