mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Remove unused 'host_is_domain'
This already exists in URL::Host, and used appropriately.
This commit is contained in:
committed by
Sam Atkins
parent
d5c21301db
commit
71cf49a06f
Notes:
github-actions[bot]
2025-01-22 12:35:18 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/71cf49a06f8 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3339 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -469,14 +469,6 @@ void DOMURL::set_hash(String const& hash)
|
||||
(void)URL::Parser::basic_parse(input, {}, &m_url, URL::Parser::State::Fragment);
|
||||
}
|
||||
|
||||
// https://url.spec.whatwg.org/#concept-domain
|
||||
// FIXME: Move into URL::Host
|
||||
bool host_is_domain(URL::Host const& host)
|
||||
{
|
||||
// A domain is a non-empty ASCII string that identifies a realm within a network.
|
||||
return host.has<String>() && host.get<String>() != String {};
|
||||
}
|
||||
|
||||
// https://url.spec.whatwg.org/#potentially-strip-trailing-spaces-from-an-opaque-path
|
||||
void strip_trailing_spaces_from_an_opaque_path(DOMURL& url)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user