From f482d849d5e21530059b99f0a2ec3a926dea2f87 Mon Sep 17 00:00:00 2001 From: "reed@reedloden.com" Date: Wed, 5 Sep 2007 20:46:16 -0700 Subject: [PATCH] Bug 394535 - "Remove obsolete code from PNG decoder" [p=glennrp@gmail.com (Glenn Randers-Pehrson) r+sr+a1.9=tor] --- modules/libpr0n/decoders/png/nsPNGDecoder.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/modules/libpr0n/decoders/png/nsPNGDecoder.cpp b/modules/libpr0n/decoders/png/nsPNGDecoder.cpp index 59b814216218..f1b776e244cf 100644 --- a/modules/libpr0n/decoders/png/nsPNGDecoder.cpp +++ b/modules/libpr0n/decoders/png/nsPNGDecoder.cpp @@ -796,8 +796,5 @@ error_callback(png_structp png_ptr, png_const_charp error_msg) void warning_callback(png_structp png_ptr, png_const_charp warning_msg) { - /* convert tRNS warning to error (bug #251381) */ - if (strncmp(warning_msg, "Missing PLTE before tRNS", 24) == 0) - png_error(png_ptr, warning_msg); PR_LOG(gPNGLog, PR_LOG_WARNING, ("libpng warning: %s\n", warning_msg)); }