From 3c056ae5599be463216fb1883c710157f019acc2 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 6 Feb 2017 09:34:23 -0800 Subject: Remove redundant tests exposed by inlining macros in fxbarcode Remove some unused #defines as well. Change-Id: Ie7dc1ae85100eae24f18a3ecd456e3c8d8043a43 Reviewed-on: https://pdfium-review.googlesource.com/2490 Commit-Queue: Tom Sepez Reviewed-by: dsinclair --- xfa/fxbarcode/qrcode/BC_QRCoder.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xfa/fxbarcode/qrcode/BC_QRCoder.cpp') diff --git a/xfa/fxbarcode/qrcode/BC_QRCoder.cpp b/xfa/fxbarcode/qrcode/BC_QRCoder.cpp index bb0001d722..a5c849780d 100644 --- a/xfa/fxbarcode/qrcode/BC_QRCoder.cpp +++ b/xfa/fxbarcode/qrcode/BC_QRCoder.cpp @@ -85,8 +85,7 @@ int32_t CBC_QRCoder::At(int32_t x, int32_t y, int32_t& e) { int32_t value = m_matrix->Get(x, y); if (!(value == 0 || value == 1)) { e = BCExceptionValueMustBeEither0or1; - if (e != BCExceptionNO) - return 0; + return 0; } return value; } -- cgit v1.2.3