1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:18:12 +00:00

LibGfx: Remove ImageDecoder::set_[non]volatile()

These methods are unused so let's remove them.
This commit is contained in:
Lucas CHOLLET 2023-07-07 18:37:46 -04:00 committed by Linus Groh
parent 210448b6ed
commit e5b70837de
22 changed files with 9 additions and 175 deletions

View file

@ -548,20 +548,6 @@ IntSize GIFImageDecoderPlugin::size()
return { m_context->logical_screen.width, m_context->logical_screen.height };
}
void GIFImageDecoderPlugin::set_volatile()
{
if (m_context->frame_buffer) {
m_context->frame_buffer->set_volatile();
}
}
bool GIFImageDecoderPlugin::set_nonvolatile(bool& was_purged)
{
if (!m_context->frame_buffer)
return false;
return m_context->frame_buffer->set_nonvolatile(was_purged);
}
ErrorOr<void> GIFImageDecoderPlugin::initialize()
{
FixedMemoryStream stream { { m_context->data, m_context->data_size } };