summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-09-01 20:12:24 +0200
committerAndreas Kling <kling@serenityos.org>2022-09-06 00:27:09 +0200
commit4c887bf6c3ca3fc89618fc2ec9dfb7c3c7fdeffd (patch)
tree16c588f0087a14e5ef8449cbcf88d73b6ccca5fe /Userland/Libraries/LibWeb
parent2d72abc3d4dbe685cb5c78b6b8a89ed5898d03a8 (diff)
downloadserenity-4c887bf6c3ca3fc89618fc2ec9dfb7c3c7fdeffd.zip
LibWeb: Remove Document::interpreter()
Nobody needs this anymore, so we can finally remove it. :^)
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Document.cpp8
-rw-r--r--Userland/Libraries/LibWeb/DOM/Document.h3
2 files changed, 0 insertions, 11 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Document.cpp b/Userland/Libraries/LibWeb/DOM/Document.cpp
index e9903c0b35..5b42f2e31b 100644
--- a/Userland/Libraries/LibWeb/DOM/Document.cpp
+++ b/Userland/Libraries/LibWeb/DOM/Document.cpp
@@ -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
diff --git a/Userland/Libraries/LibWeb/DOM/Document.h b/Userland/Libraries/LibWeb/DOM/Document.h
index d0d90e87e7..f4d6e62525 100644
--- a/Userland/Libraries/LibWeb/DOM/Document.h
+++ b/Userland/Libraries/LibWeb/DOM/Document.h
@@ -188,7 +188,6 @@ public:
void set_source(String const& source) { m_source = source; }
HTML::EnvironmentSettingsObject& relevant_settings_object();
- JS::Interpreter& interpreter();
JS::Value run_javascript(StringView source, StringView filename = "(unknown)"sv);
@@ -395,8 +394,6 @@ private:
String m_source;
- OwnPtr<JS::Interpreter> m_interpreter;
-
JS::GCPtr<HTML::HTMLScriptElement> m_pending_parsing_blocking_script;
Vector<JS::Handle<HTML::HTMLScriptElement>> m_scripts_to_execute_when_parsing_has_finished;
Vector<JS::Handle<HTML::HTMLScriptElement>> m_scripts_to_execute_as_soon_as_possible;