summaryrefslogtreecommitdiff
path: root/fxbarcode/pdf417
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-08-23 17:38:26 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-23 17:38:26 +0000
commit7aa4bc461a171cc2b5a27490a55f0baedd6623fb (patch)
treef12a7b8e5d444a2980a1fca469cb85350794b635 /fxbarcode/pdf417
parent85e622ce52eb3864e94d0fa387af39fc6993bacf (diff)
downloadpdfium-7aa4bc461a171cc2b5a27490a55f0baedd6623fb.tar.xz
Remove m_bTruncated flag from CBC_PDF417Writer.
The flag is unused. Change-Id: I15eb3e20e6a632ae2aa2afc19cb09d2402e607e0 Reviewed-on: https://pdfium-review.googlesource.com/41031 Commit-Queue: Henrique Nakashima <hnakashima@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxbarcode/pdf417')
-rw-r--r--fxbarcode/pdf417/BC_PDF417Writer.cpp9
-rw-r--r--fxbarcode/pdf417/BC_PDF417Writer.h3
2 files changed, 3 insertions, 9 deletions
diff --git a/fxbarcode/pdf417/BC_PDF417Writer.cpp b/fxbarcode/pdf417/BC_PDF417Writer.cpp
index 5cf9037601..129d59c393 100644
--- a/fxbarcode/pdf417/BC_PDF417Writer.cpp
+++ b/fxbarcode/pdf417/BC_PDF417Writer.cpp
@@ -35,9 +35,9 @@
CBC_PDF417Writer::CBC_PDF417Writer() {
m_bFixedSize = false;
}
-CBC_PDF417Writer::~CBC_PDF417Writer() {
- m_bTruncated = true;
-}
+
+CBC_PDF417Writer::~CBC_PDF417Writer() {}
+
bool CBC_PDF417Writer::SetErrorCorrectionLevel(int32_t level) {
if (level < 0 || level > 8) {
return false;
@@ -45,9 +45,6 @@ bool CBC_PDF417Writer::SetErrorCorrectionLevel(int32_t level) {
m_iCorrectLevel = level;
return true;
}
-void CBC_PDF417Writer::SetTruncated(bool truncated) {
- m_bTruncated = truncated;
-}
uint8_t* CBC_PDF417Writer::Encode(const WideString& contents,
int32_t* outWidth,
diff --git a/fxbarcode/pdf417/BC_PDF417Writer.h b/fxbarcode/pdf417/BC_PDF417Writer.h
index 1bb3a27d06..05e85c77a9 100644
--- a/fxbarcode/pdf417/BC_PDF417Writer.h
+++ b/fxbarcode/pdf417/BC_PDF417Writer.h
@@ -25,13 +25,10 @@ class CBC_PDF417Writer : public CBC_TwoDimWriter {
// CBC_TwoDimWriter
bool SetErrorCorrectionLevel(int32_t level) override;
- void SetTruncated(bool truncated);
-
private:
void rotateArray(std::vector<uint8_t>& bitarray,
int32_t width,
int32_t height);
- bool m_bTruncated;
};
#endif // FXBARCODE_PDF417_BC_PDF417WRITER_H_