summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-11-29 20:29:00 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-29 20:29:00 +0000
commit02f46ae70560c4bd70950faa1496e0c6b244ff8d (patch)
tree8ea6e6006bf524223276e5cef190e992ddc2aafb
parentb7e2ae6a5fd44f5e181937aeca202a45aed07215 (diff)
downloadpdfium-02f46ae70560c4bd70950faa1496e0c6b244ff8d.tar.xz
Remove dead CBC_OneDimWriter code.chromium/3281
Found by GCC. Change-Id: Ia403c21b1906ba6782b5a763c67a19a56de01716 Reviewed-on: https://pdfium-review.googlesource.com/19810 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
-rw-r--r--fxbarcode/oned/BC_OneDimWriter.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/fxbarcode/oned/BC_OneDimWriter.cpp b/fxbarcode/oned/BC_OneDimWriter.cpp
index e198b6c29d..0fa23bb91e 100644
--- a/fxbarcode/oned/BC_OneDimWriter.cpp
+++ b/fxbarcode/oned/BC_OneDimWriter.cpp
@@ -299,11 +299,6 @@ bool CBC_OneDimWriter::RenderResult(const WideStringView& contents,
m_outputHScale =
m_Width > 0 ? static_cast<float>(m_Width) / static_cast<float>(codeLength)
: 1.0;
- float dataLengthScale = 1.0;
- if (m_iDataLenth > 0 && contents.GetLength() != 0)
- dataLengthScale = float(contents.GetLength()) / float(m_iDataLenth);
- if (m_iDataLenth > 0 && contents.GetLength() == 0)
- dataLengthScale = float(1) / float(m_iDataLenth);
m_multiple = 1;
const int32_t outputHeight = 1;
const int32_t outputWidth = codeLength;