Skip to content

Commit

Permalink
remove dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
leanmendoza committed Sep 13, 2023
1 parent 1535060 commit 435d443
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
5 changes: 0 additions & 5 deletions rust/decentraland-godot-lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ log-panics = { version = "2", features = ["with-backtrace"]}

v8 = "0.74.3"
deno_core = "0.197"
deno_fetch = "0.137"
deno_webidl = "0.113"
deno_web = "0.144"
deno_url = "0.113"
deno_console = "0.113"
num-traits = "0.2"
num-derive = "0.3"
num = "0.4"
Expand Down
19 changes: 0 additions & 19 deletions rust/decentraland-godot-lib/src/dcl/js/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,6 @@ pub(crate) static VM_HANDLES: Lazy<std::sync::Mutex<HashMap<SceneId, IsolateHand
Lazy::new(Default::default);

pub fn create_runtime() -> deno_core::JsRuntime {
// add fetch stack
// let web = deno_web::deno_web::init_ops_and_esm::<TP>(
// std::sync::Arc::new(deno_web::BlobStore::default()),
// None,
// );
// let webidl = deno_webidl::deno_webidl::init_ops_and_esm();
// let url = deno_url::deno_url::init_ops_and_esm();
// let console = deno_console::deno_console::init_ops_and_esm();
// let fetch = deno_fetch::deno_fetch::init_js_only::<FP>();

let mut ext = &mut Extension::builder_with_deps("decentraland", &[]);

// add core ops
Expand All @@ -79,15 +69,6 @@ pub fn create_runtime() -> deno_core::JsRuntime {
ext = ext.ops(set)
}

// let override_sets: [Vec<deno_core::OpDecl>; 1] = [fetch::ops()];

// for set in override_sets {
// for op in set {
// // explicitly record the ones we added so we can remove deno_fetch imposters
// op_map.insert(op.name, op);
// }
// }

let ext = ext
// set startup JS script
.esm(include_js_files!(
Expand Down

0 comments on commit 435d443

Please sign in to comment.