mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02: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:
committed by
Sam Atkins
parent
3752facfbc
commit
4291288a31
Notes:
sideshowbarker
2024-07-17 02:21:14 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/4291288a31 Pull-request: https://github.com/SerenityOS/serenity/pull/20076 Issue: https://github.com/SerenityOS/serenity/issues/19893 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -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 {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user