From d4893eb51a01c5a692d8ca74a3b8ff95c5fd1d9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 10 Jan 2024 16:30:50 +0100 Subject: refactor: remove snapshotting from deno_runtime (#21794) Closes https://github.com/denoland/deno/issues/21137 --- runtime/js.rs | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'runtime/js.rs') diff --git a/runtime/js.rs b/runtime/js.rs index 97841ffb3..a8384ceac 100644 --- a/runtime/js.rs +++ b/runtime/js.rs @@ -1,22 +1,4 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -use deno_core::Snapshot; -use log::debug; - -#[cfg(not(feature = "dont_create_runtime_snapshot"))] -static RUNTIME_SNAPSHOT: &[u8] = - include_bytes!(concat!(env!("OUT_DIR"), "/RUNTIME_SNAPSHOT.bin")); - -pub fn deno_isolate_init() -> Option { - debug!("Deno isolate init with snapshots."); - #[cfg(not(feature = "dont_create_runtime_snapshot"))] - { - Some(Snapshot::Static(RUNTIME_SNAPSHOT)) - } - #[cfg(feature = "dont_create_runtime_snapshot")] - { - None - } -} #[cfg(not(feature = "include_js_files_for_snapshotting"))] pub static SOURCE_CODE_FOR_99_MAIN_JS: &str = include_str!("js/99_main.js"); -- cgit v1.2.3