mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +00:00
LibWeb: Remove unused 'host_is_domain'
This already exists in URL::Host, and used appropriately.
This commit is contained in:
parent
d5c21301db
commit
71cf49a06f
Notes:
github-actions[bot]
2025-01-22 12:35:18 +00:00
Author: https://github.com/shannonbooth
Commit: 71cf49a06f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3339
Reviewed-by: https://github.com/AtkinsSJ ✅
2 changed files with 0 additions and 10 deletions
|
@ -469,14 +469,6 @@ void DOMURL::set_hash(String const& hash)
|
||||||
(void)URL::Parser::basic_parse(input, {}, &m_url, URL::Parser::State::Fragment);
|
(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
|
// https://url.spec.whatwg.org/#potentially-strip-trailing-spaces-from-an-opaque-path
|
||||||
void strip_trailing_spaces_from_an_opaque_path(DOMURL& url)
|
void strip_trailing_spaces_from_an_opaque_path(DOMURL& url)
|
||||||
{
|
{
|
||||||
|
|
|
@ -92,8 +92,6 @@ private:
|
||||||
GC::Ref<URLSearchParams> m_query;
|
GC::Ref<URLSearchParams> m_query;
|
||||||
};
|
};
|
||||||
|
|
||||||
bool host_is_domain(URL::Host const&);
|
|
||||||
|
|
||||||
// https://url.spec.whatwg.org/#potentially-strip-trailing-spaces-from-an-opaque-path
|
// https://url.spec.whatwg.org/#potentially-strip-trailing-spaces-from-an-opaque-path
|
||||||
void strip_trailing_spaces_from_an_opaque_path(DOMURL& url);
|
void strip_trailing_spaces_from_an_opaque_path(DOMURL& url);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue