Explorar el Código

LibGfx: Remove now-unused load_gif_from_memory()

Andreas Kling hace 3 años
padre
commit
2bd0ef0c76

+ 0 - 9
Userland/Libraries/LibGfx/GIFLoader.cpp

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

+ 0 - 3
Userland/Libraries/LibGfx/GIFLoader.h

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