From b1529e320257c4aba1df70fb2f9418db7875b757 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 26 Sep 2021 01:00:58 +0200 Subject: [PATCH] LibWeb: Remove some unused includes and a member in HTMLScriptElement --- Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp | 4 ---- Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h | 2 -- 2 files changed, 6 deletions(-) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp index 5c7184a960..5034660c55 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.cpp @@ -6,8 +6,6 @@ #include #include -#include -#include #include #include #include @@ -23,7 +21,6 @@ namespace Web::HTML { HTMLScriptElement::HTMLScriptElement(DOM::Document& document, QualifiedName qualified_name) : HTMLElement(document, move(qualified_name)) - , m_script_filename("(document)") { } @@ -291,7 +288,6 @@ void HTMLScriptElement::prepare_script() // Fetch a classic script given url, settings object, options, classic script CORS setting, and encoding. auto request = LoadRequest::create_for_url_on_page(url, document().page()); - m_script_filename = url.to_string(); ResourceLoader::the().load( request, [this, url](auto data, auto&, auto) { diff --git a/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h b/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h index fdb7961dab..6c8521b5f1 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h +++ b/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h @@ -62,8 +62,6 @@ private: Function m_script_ready_callback; - String m_script_filename; - RefPtr