mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
LibWeb: Remove ImageLoader and ImageResource
The old image loading mechanism is no longer used, as everything has been moved on top of HTML::ImageRequest! :^)
This commit is contained in:
parent
a553fe055b
commit
2ebb3639aa
7 changed files with 0 additions and 465 deletions
|
@ -9,7 +9,6 @@
|
|||
#include <LibCore/MimeData.h>
|
||||
#include <LibTextCodec/Decoder.h>
|
||||
#include <LibWeb/HTML/HTMLImageElement.h>
|
||||
#include <LibWeb/Loader/ImageResource.h>
|
||||
#include <LibWeb/Loader/Resource.h>
|
||||
#include <LibWeb/Loader/ResourceLoader.h>
|
||||
#include <LibWeb/Platform/EventLoopPlugin.h>
|
||||
|
@ -18,8 +17,6 @@ namespace Web {
|
|||
|
||||
NonnullRefPtr<Resource> Resource::create(Badge<ResourceLoader>, Type type, LoadRequest const& request)
|
||||
{
|
||||
if (type == Type::Image)
|
||||
return adopt_ref(*new ImageResource(request));
|
||||
return adopt_ref(*new Resource(type, request));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue