summaryrefslogtreecommitdiff
path: root/xfa/fxbarcode/qrcode/BC_QRCoderMaskUtil.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-02-06 09:34:23 -0800
committerChromium commit bot <commit-bot@chromium.org>2017-02-06 17:56:54 +0000
commit3c056ae5599be463216fb1883c710157f019acc2 (patch)
tree69910ca9c32e06600adbe28bb0cdb0dc50245a64 /xfa/fxbarcode/qrcode/BC_QRCoderMaskUtil.cpp
parente5f4f22e4c67f40123bca91c2213223cc5a12ebd (diff)
downloadpdfium-3c056ae5599be463216fb1883c710157f019acc2.tar.xz
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 <tsepez@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxbarcode/qrcode/BC_QRCoderMaskUtil.cpp')
-rw-r--r--xfa/fxbarcode/qrcode/BC_QRCoderMaskUtil.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/xfa/fxbarcode/qrcode/BC_QRCoderMaskUtil.cpp b/xfa/fxbarcode/qrcode/BC_QRCoderMaskUtil.cpp
index acc0cc9459..7953701bb2 100644
--- a/xfa/fxbarcode/qrcode/BC_QRCoderMaskUtil.cpp
+++ b/xfa/fxbarcode/qrcode/BC_QRCoderMaskUtil.cpp
@@ -128,8 +128,7 @@ bool CBC_QRCoderMaskUtil::GetDataMaskBit(int32_t maskPattern,
int32_t& e) {
if (!CBC_QRCoder::IsValidMaskPattern(maskPattern)) {
e = (BCExceptionInvalidateMaskPattern);
- if (e != BCExceptionNO)
- return false;
+ return false;
}
int32_t intermediate = 0, temp = 0;
switch (maskPattern) {
@@ -162,8 +161,7 @@ bool CBC_QRCoderMaskUtil::GetDataMaskBit(int32_t maskPattern,
break;
default: {
e = BCExceptionInvalidateMaskPattern;
- if (e != BCExceptionNO)
- return false;
+ return false;
}
}
return intermediate == 0;