1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 08:28:11 +00:00

LibGfx/GIF: Don't read the header twice

This is already done in `load_gif_frame_descriptors()`. As the method
`initialize()` is now empty, we can delete it.
This commit is contained in:
Lucas CHOLLET 2023-07-14 17:32:26 -04:00 committed by Andreas Kling
parent e56809dda8
commit 1192e46c09
2 changed files with 0 additions and 8 deletions

View file

@ -548,13 +548,6 @@ IntSize GIFImageDecoderPlugin::size()
return { m_context->logical_screen.width, m_context->logical_screen.height };
}
ErrorOr<void> GIFImageDecoderPlugin::initialize()
{
FixedMemoryStream stream { { m_context->data, m_context->data_size } };
TRY(decode_gif_header(stream));
return {};
}
bool GIFImageDecoderPlugin::sniff(ReadonlyBytes data)
{
FixedMemoryStream stream { data };

View file

@ -22,7 +22,6 @@ public:
virtual IntSize size() override;
virtual ErrorOr<void> initialize() override;
virtual bool is_animated() override;
virtual size_t loop_count() override;
virtual size_t frame_count() override;