mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 01:51:03 +09:00
LibURL: Remove unused URL::create_with_help_scheme
This is unused since the SerenityOS split.
This commit is contained in:
parent
672ff7e45e
commit
d9927d128c
Notes:
github-actions[bot]
2024-08-06 22:09:34 +00:00
Author: https://github.com/shannonbooth
Commit: d9927d128c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/987
Reviewed-by: https://github.com/tcl3 ✅
2 changed files with 0 additions and 17 deletions
|
@ -187,22 +187,6 @@ URL create_with_file_scheme(ByteString const& path, ByteString const& fragment,
|
||||||
return url;
|
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 create_with_url_or_path(ByteString const& url_or_path)
|
||||||
{
|
{
|
||||||
URL url = url_or_path;
|
URL url = url_or_path;
|
||||||
|
|
|
@ -238,7 +238,6 @@ private:
|
||||||
|
|
||||||
URL create_with_url_or_path(ByteString const&);
|
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_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);
|
URL create_with_data(StringView mime_type, StringView payload, bool is_base64 = false);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue