diff --git a/src/add-ons/translators/png/PNGTranslator.cpp b/src/add-ons/translators/png/PNGTranslator.cpp index 3c95d76fe3..2628d96d79 100644 --- a/src/add-ons/translators/png/PNGTranslator.cpp +++ b/src/add-ons/translators/png/PNGTranslator.cpp @@ -36,7 +36,6 @@ #include #include -#include #include #include #define PNG_NO_PEDANTIC_WARNINGS @@ -300,11 +299,9 @@ void throw_error(png_structp ppng, png_const_charp error_msg) void alert_warning(png_structp ppng, png_const_charp error_msg) { - BAlert* alert = new BAlert("alert", error_msg, - B_TRANSLATE("OK"), NULL, NULL, B_WIDTH_FROM_LABEL, - B_WARNING_ALERT); - alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE); - alert->Go(); + // These are only warnings and the image can still be decoded. We have no + // way to convey this to the calling app using the current translator API, + // so the warnings are just ignored. } status_t