mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
LibGfx: Remove load_FORMAT() image codec wrappers
We had a bunch of old unused wrapper functions for each image codec that would load a supported image with a given path. Nobody actually used them, so let's just get rid of load_png(), load_gif(), etc.
This commit is contained in:
parent
09780ba7a9
commit
10add3f4c2
20 changed files with 2 additions and 105 deletions
|
@ -8,9 +8,6 @@
|
|||
#include "PortableImageLoaderCommon.h"
|
||||
#include "Streamer.h"
|
||||
#include <AK/Endian.h>
|
||||
#include <AK/LexicalPath.h>
|
||||
#include <AK/MappedFile.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <string.h>
|
||||
|
||||
namespace Gfx {
|
||||
|
@ -97,11 +94,6 @@ static bool read_image_data(PBMLoadingContext& context, Streamer& streamer)
|
|||
return true;
|
||||
}
|
||||
|
||||
RefPtr<Gfx::Bitmap> load_pbm(StringView path)
|
||||
{
|
||||
return load<PBMLoadingContext>(path);
|
||||
}
|
||||
|
||||
RefPtr<Gfx::Bitmap> load_pbm_from_memory(u8 const* data, size_t length, String const& mmap_name)
|
||||
{
|
||||
return load_from_memory<PBMLoadingContext>(data, length, mmap_name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue