mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:57:44 +00:00
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.
This commit is contained in:
parent
481e7b7971
commit
47edd6ae89
16 changed files with 2 additions and 146 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue