summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/ICOLoader.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-12 15:51:53 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-13 00:55:07 +0100
commit47edd6ae894c7c303e0ea2cec00b8519ff962bc4 (patch)
treed728d06374b57864062bab3364b9a150d361ec17 /Userland/Libraries/LibGfx/ICOLoader.cpp
parent481e7b797170e5067df0c094ca7b678aed214738 (diff)
downloadserenity-47edd6ae894c7c303e0ea2cec00b8519ff962bc4.zip
LibGfx: Remove all load_FORMAT_from_memory() decoder wrappers
There are no more clients of these APIs, now that everyone has been made to use ImageDecoderPlugin objects instead.
Diffstat (limited to 'Userland/Libraries/LibGfx/ICOLoader.cpp')
-rw-r--r--Userland/Libraries/LibGfx/ICOLoader.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/Userland/Libraries/LibGfx/ICOLoader.cpp b/Userland/Libraries/LibGfx/ICOLoader.cpp
index ef92832344..42ad214a22 100644
--- a/Userland/Libraries/LibGfx/ICOLoader.cpp
+++ b/Userland/Libraries/LibGfx/ICOLoader.cpp
@@ -89,15 +89,6 @@ struct ICOLoadingContext {
size_t largest_index;
};
-RefPtr<Gfx::Bitmap> load_ico_from_memory(u8 const* data, size_t length, String const& mmap_name)
-{
- ICOImageDecoderPlugin decoder(data, length);
- auto bitmap = decoder.bitmap();
- if (bitmap)
- bitmap->set_mmap_name(String::formatted("Gfx::Bitmap [{}] - Decoded ICO: {}", bitmap->size(), mmap_name));
- return bitmap;
-}
-
static Optional<size_t> decode_ico_header(InputMemoryStream& stream)
{
ICONDIR header;