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:
Gae24
2026-01-22 16:12:09 +01:00
committed by GitHub
parent 11d368906b
commit b7ccf86cb8
9 changed files with 27 additions and 398 deletions

View File

@@ -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)),
),
};