mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
LibGfx: Remove now-unused load_gif_from_memory()
This commit is contained in:
parent
880fafd2c5
commit
2bd0ef0c76
2 changed files with 0 additions and 12 deletions
|
@ -80,15 +80,6 @@ struct GIFLoadingContext {
|
|||
RefPtr<Gfx::Bitmap> prev_frame_buffer;
|
||||
};
|
||||
|
||||
RefPtr<Gfx::Bitmap> load_gif_from_memory(u8 const* data, size_t length, String const& mmap_name)
|
||||
{
|
||||
GIFImageDecoderPlugin gif_decoder(data, length);
|
||||
auto bitmap = gif_decoder.bitmap();
|
||||
if (bitmap)
|
||||
bitmap->set_mmap_name(String::formatted("Gfx::Bitmap [{}] - Decoded GIF: {}", bitmap->size(), mmap_name));
|
||||
return bitmap;
|
||||
}
|
||||
|
||||
enum class GIFFormat {
|
||||
GIF87a,
|
||||
GIF89a,
|
||||
|
|
|
@ -6,14 +6,11 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/String.h>
|
||||
#include <LibGfx/Bitmap.h>
|
||||
#include <LibGfx/ImageDecoder.h>
|
||||
|
||||
namespace Gfx {
|
||||
|
||||
RefPtr<Gfx::Bitmap> load_gif_from_memory(u8 const*, size_t, String const& mmap_name = "<memory>");
|
||||
|
||||
struct GIFLoadingContext;
|
||||
|
||||
class GIFImageDecoderPlugin final : public ImageDecoderPlugin {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue