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

LibGfx: Remove now-unused load_gif_from_memory()

This commit is contained in:
Andreas Kling 2021-11-11 11:45:32 +01:00
parent 880fafd2c5
commit 2bd0ef0c76
2 changed files with 0 additions and 12 deletions

View file

@ -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,