From d9927d128c25c740fe5d396b1a3e1d532121fdb2 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Tue, 6 Aug 2024 21:39:10 +1200 Subject: [PATCH] LibURL: Remove unused URL::create_with_help_scheme This is unused since the SerenityOS split. --- Userland/Libraries/LibURL/URL.cpp | 16 ---------------- Userland/Libraries/LibURL/URL.h | 1 - 2 files changed, 17 deletions(-) diff --git a/Userland/Libraries/LibURL/URL.cpp b/Userland/Libraries/LibURL/URL.cpp index b22a3c025e3..31eff8dfb2d 100644 --- a/Userland/Libraries/LibURL/URL.cpp +++ b/Userland/Libraries/LibURL/URL.cpp @@ -187,22 +187,6 @@ URL create_with_file_scheme(ByteString const& path, ByteString const& fragment, return url; } -URL create_with_help_scheme(ByteString const& path, ByteString const& fragment, ByteString const& hostname) -{ - LexicalPath lexical_path(path); - - URL url; - url.set_scheme("help"_string); - url.set_host(hostname == "localhost" ? String {} : String::from_byte_string(hostname).release_value_but_fixme_should_propagate_errors()); - - url.set_paths(lexical_path.parts()); - if (path.ends_with('/')) - url.append_slash(); - if (!fragment.is_empty()) - url.set_fragment(String::from_byte_string(fragment).release_value_but_fixme_should_propagate_errors()); - return url; -} - URL create_with_url_or_path(ByteString const& url_or_path) { URL url = url_or_path; diff --git a/Userland/Libraries/LibURL/URL.h b/Userland/Libraries/LibURL/URL.h index 9590ade30be..31b17e0d202 100644 --- a/Userland/Libraries/LibURL/URL.h +++ b/Userland/Libraries/LibURL/URL.h @@ -238,7 +238,6 @@ private: URL create_with_url_or_path(ByteString const&); URL create_with_file_scheme(ByteString const& path, ByteString const& fragment = {}, ByteString const& hostname = {}); -URL create_with_help_scheme(ByteString const& path, ByteString const& fragment = {}, ByteString const& hostname = {}); URL create_with_data(StringView mime_type, StringView payload, bool is_base64 = false); }