LibWeb: Remove unused 'host_is_domain'

This already exists in URL::Host, and used appropriately.
This commit is contained in:
Shannon Booth 2025-01-22 17:11:53 +13:00 committed by Sam Atkins
commit 71cf49a06f
Notes: github-actions[bot] 2025-01-22 12:35:18 +00:00
2 changed files with 0 additions and 10 deletions

View file

@ -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)
{