mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09: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
Notes:
sideshowbarker
2024-07-18 01:16:28 +09:00
Author: https://github.com/awesomekling
Commit: 10add3f4c2
20 changed files with 2 additions and 105 deletions
|
@ -8,8 +8,6 @@
|
|||
#include "PortableImageLoaderCommon.h"
|
||||
#include "Streamer.h"
|
||||
#include <AK/Endian.h>
|
||||
#include <AK/LexicalPath.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <string.h>
|
||||
|
||||
namespace Gfx {
|
||||
|
@ -99,11 +97,6 @@ static bool read_image_data(PGMLoadingContext& context, Streamer& streamer)
|
|||
return true;
|
||||
}
|
||||
|
||||
RefPtr<Gfx::Bitmap> load_pgm(StringView path)
|
||||
{
|
||||
return load<PGMLoadingContext>(path);
|
||||
}
|
||||
|
||||
RefPtr<Gfx::Bitmap> load_pgm_from_memory(u8 const* data, size_t length, String const& mmap_name)
|
||||
{
|
||||
return load_from_memory<PGMLoadingContext>(data, length, mmap_name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue