summaryrefslogtreecommitdiff
path: root/fxbarcode
diff options
context:
space:
mode:
Diffstat (limited to 'fxbarcode')
-rw-r--r--fxbarcode/cbc_pdf417i.cpp4
-rw-r--r--fxbarcode/cbc_pdf417i.h1
-rw-r--r--fxbarcode/pdf417/BC_PDF417Writer.cpp9
-rw-r--r--fxbarcode/pdf417/BC_PDF417Writer.h3
4 files changed, 3 insertions, 14 deletions
diff --git a/fxbarcode/cbc_pdf417i.cpp b/fxbarcode/cbc_pdf417i.cpp
index 0bb632ee2f..b01197954c 100644
--- a/fxbarcode/cbc_pdf417i.cpp
+++ b/fxbarcode/cbc_pdf417i.cpp
@@ -36,10 +36,6 @@ bool CBC_PDF417I::SetErrorCorrectionLevel(int32_t level) {
return true;
}
-void CBC_PDF417I::SetTruncated(bool truncated) {
- GetPDF417Writer()->SetTruncated(truncated);
-}
-
bool CBC_PDF417I::Encode(const WideStringView& contents) {
int32_t outWidth;
int32_t outHeight;
diff --git a/fxbarcode/cbc_pdf417i.h b/fxbarcode/cbc_pdf417i.h
index 5bd7a26eeb..3cb73e3f0f 100644
--- a/fxbarcode/cbc_pdf417i.h
+++ b/fxbarcode/cbc_pdf417i.h
@@ -26,7 +26,6 @@ class CBC_PDF417I : public CBC_CodeBase {
BC_TYPE GetType() override;
bool SetErrorCorrectionLevel(int32_t level);
- void SetTruncated(bool truncated);
private:
CBC_PDF417Writer* GetPDF417Writer();
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_