diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2018-08-22 17:22:17 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-22 17:22:17 +0000 |
commit | c47ba8ece5d73651dd966fd420ba00da2f9c6ad8 (patch) | |
tree | bfb0aa308aabd34f3c7f8697436d7b8e2b87304d /fxbarcode/pdf417/BC_PDF417BarcodeMatrix.cpp | |
parent | 03fdf3a2b5ee0974be13a9594a897003df412306 (diff) | |
download | pdfium-c47ba8ece5d73651dd966fd420ba00da2f9c6ad8.tar.xz |
Remove unused setters in CBC_BarcodeMatrix and CBC_BarcodeRow.
Change-Id: I01c83d96f07eac776e8269b7d1e06b2b07ca75ea
Reviewed-on: https://pdfium-review.googlesource.com/40932
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'fxbarcode/pdf417/BC_PDF417BarcodeMatrix.cpp')
-rw-r--r-- | fxbarcode/pdf417/BC_PDF417BarcodeMatrix.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/fxbarcode/pdf417/BC_PDF417BarcodeMatrix.cpp b/fxbarcode/pdf417/BC_PDF417BarcodeMatrix.cpp index ebedbf6197..58357b22de 100644 --- a/fxbarcode/pdf417/BC_PDF417BarcodeMatrix.cpp +++ b/fxbarcode/pdf417/BC_PDF417BarcodeMatrix.cpp @@ -38,21 +38,18 @@ CBC_BarcodeMatrix::CBC_BarcodeMatrix(int32_t height, int32_t width) { CBC_BarcodeMatrix::~CBC_BarcodeMatrix() {} -void CBC_BarcodeMatrix::set(int32_t x, int32_t y, uint8_t value) { - m_matrix[y]->set(x, value); -} -void CBC_BarcodeMatrix::setMatrix(int32_t x, int32_t y, bool black) { - set(x, y, (uint8_t)(black ? 1 : 0)); -} void CBC_BarcodeMatrix::nextRow() { ++m_currentRow; } + std::vector<uint8_t>& CBC_BarcodeMatrix::getMatrix() { return getScaledMatrix(1, 1); } + std::vector<uint8_t>& CBC_BarcodeMatrix::getScaledMatrix(int32_t scale) { return getScaledMatrix(scale, scale); } + std::vector<uint8_t>& CBC_BarcodeMatrix::getScaledMatrix(int32_t xScale, int32_t yScale) { size_t yMax = m_height * yScale; |