1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 09:27:35 +00:00

LibWeb: Remove unused ResourceLoader::load(URL) overload

With the refactoring of Workers, nobody is calling this LoadRequest-less
overload. All new code should eventually be moved to fetch anyway.
This commit is contained in:
Andrew Kaster 2023-11-09 18:12:17 -07:00 committed by Andreas Kling
parent 124c378472
commit ea95256f83
2 changed files with 0 additions and 8 deletions

View file

@ -391,13 +391,6 @@ void ResourceLoader::load(LoadRequest& request, SuccessCallback success_callback
error_callback(not_implemented_error, {}, {}, {});
}
void ResourceLoader::load(const AK::URL& url, SuccessCallback success_callback, ErrorCallback error_callback, Optional<u32> timeout, TimeoutCallback timeout_callback)
{
LoadRequest request;
request.set_url(url);
load(request, move(success_callback), move(error_callback), timeout, move(timeout_callback));
}
bool ResourceLoader::is_port_blocked(int port)
{
int ports[] { 1, 7, 9, 11, 13, 15, 17, 19, 20, 21, 22, 23, 25, 37, 42,