1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 17:44:56 +09:00

LibURL: Remove unused URL::create_with_help_scheme

This is unused since the SerenityOS split.
This commit is contained in:
Shannon Booth 2024-08-06 21:39:10 +12:00 committed by Tim Ledbetter
parent 672ff7e45e
commit d9927d128c
Notes: github-actions[bot] 2024-08-06 22:09:34 +00:00
2 changed files with 0 additions and 17 deletions

View file

@ -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;

View file

@ -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);
}