From 48f1bf7ef343b3de175b51d121c16ccc7b85e838 Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Tue, 24 Jun 2025 15:37:33 +0100 Subject: [PATCH] LibWeb: Remove `Document::parse_url()` This is no longer used. --- Libraries/LibWeb/DOM/Document.cpp | 10 ---------- Libraries/LibWeb/DOM/Document.h | 1 - 2 files changed, 11 deletions(-) diff --git a/Libraries/LibWeb/DOM/Document.cpp b/Libraries/LibWeb/DOM/Document.cpp index dfb187cfc94..6fe44d82685 100644 --- a/Libraries/LibWeb/DOM/Document.cpp +++ b/Libraries/LibWeb/DOM/Document.cpp @@ -1199,16 +1199,6 @@ URL::URL Document::base_url() const return base_element->frozen_base_url(); } -// https://html.spec.whatwg.org/multipage/urls-and-fetching.html#parse-a-url -Optional Document::parse_url(StringView url) const -{ - // 1. Let baseURL be environment's base URL, if environment is a Document object; otherwise environment's API base URL. - auto base_url = this->base_url(); - - // 2. Return the result of applying the URL parser to url, with baseURL. - return DOMURL::parse(url, base_url); -} - // https://html.spec.whatwg.org/multipage/urls-and-fetching.html#encoding-parsing-a-url Optional Document::encoding_parse_url(StringView url) const { diff --git a/Libraries/LibWeb/DOM/Document.h b/Libraries/LibWeb/DOM/Document.h index 22edbdb4610..b8bd4ac4220 100644 --- a/Libraries/LibWeb/DOM/Document.h +++ b/Libraries/LibWeb/DOM/Document.h @@ -235,7 +235,6 @@ public: HTML::OpenerPolicy const& opener_policy() const { return m_opener_policy; } void set_opener_policy(HTML::OpenerPolicy policy) { m_opener_policy = move(policy); } - Optional parse_url(StringView) const; Optional encoding_parse_url(StringView) const; Optional encoding_parse_and_serialize_url(StringView) const;