diff options
author | Andreas Kling <kling@serenityos.org> | 2021-11-12 15:51:53 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-13 00:55:07 +0100 |
commit | 47edd6ae894c7c303e0ea2cec00b8519ff962bc4 (patch) | |
tree | d728d06374b57864062bab3364b9a150d361ec17 /Userland/Libraries/LibGfx/ICOLoader.cpp | |
parent | 481e7b797170e5067df0c094ca7b678aed214738 (diff) | |
download | serenity-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.cpp | 9 |
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; |