mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
LibWeb: Remove Document::interpreter()
Nobody needs this anymore, so we can finally remove it. :^)
This commit is contained in:
parent
2d72abc3d4
commit
4c887bf6c3
Notes:
sideshowbarker
2024-07-17 07:27:27 +09:00
Author: https://github.com/awesomekling
Commit: 4c887bf6c3
Pull-request: https://github.com/SerenityOS/serenity/pull/14816
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/linusg ✅
3 changed files with 0 additions and 12 deletions
|
@ -1047,14 +1047,6 @@ HTML::EnvironmentSettingsObject& Document::relevant_settings_object()
|
|||
return verify_cast<HTML::EnvironmentSettingsObject>(*realm().host_defined());
|
||||
}
|
||||
|
||||
JS::Interpreter& Document::interpreter()
|
||||
{
|
||||
if (!m_interpreter) {
|
||||
m_interpreter = JS::Interpreter::create_with_existing_realm(realm());
|
||||
}
|
||||
return *m_interpreter;
|
||||
}
|
||||
|
||||
JS::Value Document::run_javascript(StringView source, StringView filename)
|
||||
{
|
||||
// FIXME: The only user of this function now is javascript: URLs. Refactor them to follow the spec: https://html.spec.whatwg.org/multipage/browsing-the-web.html#javascript-protocol
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue