From 7b3902e3d5cd86654f00300799b795735ab7a701 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Tue, 25 Jul 2023 20:10:22 +1200 Subject: [PATCH] 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. --- AK/URL.cpp | 5 ----- AK/URL.h | 1 - 2 files changed, 6 deletions(-) diff --git a/AK/URL.cpp b/AK/URL.cpp index 0e591aff88..eceb96d34b 100644 --- a/AK/URL.cpp +++ b/AK/URL.cpp @@ -190,11 +190,6 @@ bool URL::compute_validity() const return true; } -bool URL::scheme_requires_port(StringView scheme) -{ - return (default_port_for_scheme(scheme) != 0); -} - u16 URL::default_port_for_scheme(StringView scheme) { if (scheme == "http") diff --git a/AK/URL.h b/AK/URL.h index 53443bfcaa..6b75d1239d 100644 --- a/AK/URL.h +++ b/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_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 bool is_special_scheme(StringView);