summaryrefslogtreecommitdiff
path: root/runtime/shared.rs
diff options
context:
space:
mode:
authorBartek Iwańczuk <biwanczuk@gmail.com>2024-09-04 11:49:31 +0100
committerGitHub <noreply@github.com>2024-09-04 10:49:31 +0000
commit5ee671311a174b5461483db788f732fe736b6549 (patch)
tree7313593110d31be8d102a5a499c29abce8f4ebe1 /runtime/shared.rs
parent31ecc09b5ae38531cb63680cc40b89d01d8635df (diff)
chore: remove some dead code around DENO_FUTURE env var (#25418)
These codepaths were not used anymore.
Diffstat (limited to 'runtime/shared.rs')
-rw-r--r--runtime/shared.rs23
1 files changed, 0 insertions, 23 deletions
diff --git a/runtime/shared.rs b/runtime/shared.rs
index c52521690..1b2136c63 100644
--- a/runtime/shared.rs
+++ b/runtime/shared.rs
@@ -116,26 +116,3 @@ pub fn maybe_transpile_source(
Ok((source_text.into(), maybe_source_map))
}
-
-pub fn import_assertion_callback(
- args: deno_core::ImportAssertionsSupportCustomCallbackArgs,
-) {
- let mut msg = deno_terminal::colors::yellow("⚠️ Import assertions are deprecated. Use `with` keyword, instead of 'assert' keyword.").to_string();
- if let Some(specifier) = args.maybe_specifier {
- if let Some(source_line) = args.maybe_source_line {
- msg.push_str("\n\n");
- msg.push_str(&source_line);
- msg.push_str("\n\n");
- }
- msg.push_str(&format!(
- " at {}:{}:{}\n",
- specifier,
- args.maybe_line_number.unwrap(),
- args.column_number
- ));
- #[allow(clippy::print_stderr)]
- {
- eprintln!("{}", msg);
- }
- }
-}