From 4a8eeb74d38a1589c21ec06b68262d7795dd8f71 Mon Sep 17 00:00:00 2001 From: Jun Fang Date: Tue, 3 Nov 2015 19:01:30 -0800 Subject: Remove unused variables BUG=pdfium:261 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1413343003 . --- xfa/src/fxbarcode/datamatrix/BC_ErrorCorrection.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'xfa/src/fxbarcode/datamatrix/BC_ErrorCorrection.cpp') diff --git a/xfa/src/fxbarcode/datamatrix/BC_ErrorCorrection.cpp b/xfa/src/fxbarcode/datamatrix/BC_ErrorCorrection.cpp index 32dd416522..ffb52350c9 100644 --- a/xfa/src/fxbarcode/datamatrix/BC_ErrorCorrection.cpp +++ b/xfa/src/fxbarcode/datamatrix/BC_ErrorCorrection.cpp @@ -151,16 +151,9 @@ CFX_WideString CBC_ErrorCorrection::createECCBlock(CFX_WideString codewords, FX_WORD* ecc = FX_Alloc(FX_WORD, numECWords); FXSYS_memset(ecc, 0, numECWords * sizeof(FX_WORD)); for (int32_t l = start; l < start + len; l++) { - uint8_t A = (uint8_t)codewords.GetAt(l); - FX_WORD B = ecc[numECWords - 1]; FX_WORD m = ecc[numECWords - 1] ^ codewords.GetAt(l); for (int32_t k = numECWords - 1; k > 0; k--) { if (m != 0 && FACTORS[table][k] != 0) { - int32_t a = LOG[FACTORS[table][k]]; - int32_t b = ALOG[(LOG[m] + LOG[FACTORS[table][k]]) % 255]; - FX_WORD c = ecc[k - 1]; - FX_WORD D = - (ecc[k - 1] ^ ALOG[(LOG[m] + LOG[FACTORS[table][k]]) % 255]); ecc[k] = (FX_WORD)(ecc[k - 1] ^ ALOG[(LOG[m] + LOG[FACTORS[table][k]]) % 255]); } else { -- cgit v1.2.3