summaryrefslogtreecommitdiff
path: root/xfa/src/fxbarcode/oned/BC_OnedUPCAWriter.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2016-02-25 12:08:02 -0800
committerLei Zhang <thestig@chromium.org>2016-02-25 12:08:02 -0800
commit6941d29a825a815bebf93e07c3f2e2274399c7a4 (patch)
tree222d611e79399d49dce45be9bbb1e0bd0efbfcb3 /xfa/src/fxbarcode/oned/BC_OnedUPCAWriter.cpp
parent6b7b5a52f42aa9b37be5307915885d5f4566c326 (diff)
downloadpdfium-6941d29a825a815bebf93e07c3f2e2274399c7a4.tar.xz
Remove set but unsed variables.
And other nearby dead code. R=dsinclair@chromium.org Review URL: https://codereview.chromium.org/1740613002 .
Diffstat (limited to 'xfa/src/fxbarcode/oned/BC_OnedUPCAWriter.cpp')
-rw-r--r--xfa/src/fxbarcode/oned/BC_OnedUPCAWriter.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/xfa/src/fxbarcode/oned/BC_OnedUPCAWriter.cpp b/xfa/src/fxbarcode/oned/BC_OnedUPCAWriter.cpp
index 55c50318a5..fe4a8e7824 100644
--- a/xfa/src/fxbarcode/oned/BC_OnedUPCAWriter.cpp
+++ b/xfa/src/fxbarcode/oned/BC_OnedUPCAWriter.cpp
@@ -130,7 +130,6 @@ void CBC_OnedUPCAWriter::ShowChars(const CFX_WideStringC& contents,
if (pOutBitmap) {
geBitmap.Attach(pOutBitmap);
}
- FX_FLOAT charsWidth = 0;
iLen = tempStr.GetLength();
int32_t iFontSize = (int32_t)fabs(m_fFontSize);
int32_t iTextHeight = iFontSize + 1;
@@ -200,7 +199,6 @@ void CBC_OnedUPCAWriter::ShowChars(const CFX_WideStringC& contents,
}
tempStr = str.Mid(6, 5);
iLen = tempStr.GetLength();
- charsWidth = 0.0f;
CalcTextInfo(tempStr, pCharPos + 6, m_pFont, strWidth, iFontSize, blank);
if (pOutBitmap) {
FX_RECT rect2(0, 0, (int)strWidth, iTextHeight);