mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
LibGfx: Remove ImageDecoderPlugin::initialize()
No plugin is currently overriding the default implementation, which is a no-op. So we can safely delete it.
This commit is contained in:
parent
3752facfbc
commit
4291288a31
18 changed files with 17 additions and 91 deletions
|
@ -49,10 +49,8 @@ static OwnPtr<ImageDecoderPlugin> probe_and_sniff_for_appropriate_plugin(Readonl
|
|||
if (!sniff_result)
|
||||
continue;
|
||||
auto plugin_decoder = plugin.create(bytes);
|
||||
if (!plugin_decoder.is_error()) {
|
||||
if (!plugin_decoder.value()->initialize().is_error())
|
||||
return plugin_decoder.release_value();
|
||||
}
|
||||
if (!plugin_decoder.is_error())
|
||||
return plugin_decoder.release_value();
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
@ -76,10 +74,8 @@ static OwnPtr<ImageDecoderPlugin> probe_and_sniff_for_appropriate_plugin_with_kn
|
|||
if (!validation_result)
|
||||
continue;
|
||||
auto plugin_decoder = plugin.create(bytes);
|
||||
if (!plugin_decoder.is_error()) {
|
||||
if (!plugin_decoder.value()->initialize().is_error())
|
||||
return plugin_decoder.release_value();
|
||||
}
|
||||
if (!plugin_decoder.is_error())
|
||||
return plugin_decoder.release_value();
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue