mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +00:00
AK: Remove unused URL::scheme_requires_port
THis function does not seem to be used anywhere, and I cannot find any spec equivalent for this function.
This commit is contained in:
parent
c8da880806
commit
7b3902e3d5
2 changed files with 0 additions and 6 deletions
|
@ -190,11 +190,6 @@ bool URL::compute_validity() const
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool URL::scheme_requires_port(StringView scheme)
|
|
||||||
{
|
|
||||||
return (default_port_for_scheme(scheme) != 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
u16 URL::default_port_for_scheme(StringView scheme)
|
u16 URL::default_port_for_scheme(StringView scheme)
|
||||||
{
|
{
|
||||||
if (scheme == "http")
|
if (scheme == "http")
|
||||||
|
|
1
AK/URL.h
1
AK/URL.h
|
@ -120,7 +120,6 @@ public:
|
||||||
static URL create_with_help_scheme(DeprecatedString const& path, DeprecatedString const& fragment = {}, DeprecatedString const& hostname = {});
|
static URL create_with_help_scheme(DeprecatedString const& path, DeprecatedString const& fragment = {}, DeprecatedString const& hostname = {});
|
||||||
static URL create_with_data(DeprecatedString mime_type, DeprecatedString payload, bool is_base64 = false) { return URL(move(mime_type), move(payload), is_base64); }
|
static URL create_with_data(DeprecatedString mime_type, DeprecatedString payload, bool is_base64 = false) { return URL(move(mime_type), move(payload), is_base64); }
|
||||||
|
|
||||||
static bool scheme_requires_port(StringView);
|
|
||||||
static u16 default_port_for_scheme(StringView);
|
static u16 default_port_for_scheme(StringView);
|
||||||
static bool is_special_scheme(StringView);
|
static bool is_special_scheme(StringView);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue