mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
script: remove more unused code (#42081)
This commit remove more unused code from `script_module`, `inline_module_map` and `dynamic_modules` fields from `GlobalScope` and the now unused custom interface `DynamicModuleOwner`. Testing: No functional change, a successful build is enough. --------- Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
This commit is contained in:
@@ -26,6 +26,7 @@ use script_bindings::str::DOMString;
|
||||
use servo_url::ServoUrl;
|
||||
|
||||
use crate::dom::bindings::error::Error;
|
||||
use crate::dom::bindings::refcounted::Trusted;
|
||||
use crate::dom::bindings::root::DomRoot;
|
||||
use crate::dom::bindings::settings_stack::AutoIncumbentScript;
|
||||
use crate::dom::globalscope::GlobalScope;
|
||||
@@ -494,7 +495,7 @@ pub(crate) fn host_load_imported_module(
|
||||
// Step 11. Let destination be "script".
|
||||
Destination::Script,
|
||||
// Step 12. Let fetchClient be settingsObject.
|
||||
ModuleOwner::new_dynamic(&global_scope, CanGc::note()),
|
||||
ModuleOwner::DynamicModule(Trusted::new(&global_scope)),
|
||||
),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user