Remove an unused parameter from CBC_EncoderContext.

Fix the call stack.

Change-Id: I20a829f548395cc843f1f2292a3f6a814b28ae56
Reviewed-on: https://pdfium-review.googlesource.com/c/46513
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
diff --git a/fxbarcode/datamatrix/BC_DataMatrixWriter.cpp b/fxbarcode/datamatrix/BC_DataMatrixWriter.cpp
index 4ac8812..86df78b 100644
--- a/fxbarcode/datamatrix/BC_DataMatrixWriter.cpp
+++ b/fxbarcode/datamatrix/BC_DataMatrixWriter.cpp
@@ -109,9 +109,7 @@
 uint8_t* CBC_DataMatrixWriter::Encode(const WideString& contents,
                                       int32_t& outWidth,
                                       int32_t& outHeight) {
-  WideString ecLevel;
-  WideString encoded =
-      CBC_HighLevelEncoder::EncodeHighLevel(contents, ecLevel, false);
+  WideString encoded = CBC_HighLevelEncoder::EncodeHighLevel(contents, false);
   if (encoded.IsEmpty())
     return nullptr;
 
diff --git a/fxbarcode/datamatrix/BC_EncoderContext.cpp b/fxbarcode/datamatrix/BC_EncoderContext.cpp
index 87fcb09..2552ba4 100644
--- a/fxbarcode/datamatrix/BC_EncoderContext.cpp
+++ b/fxbarcode/datamatrix/BC_EncoderContext.cpp
@@ -29,7 +29,6 @@
 #include "fxbarcode/datamatrix/BC_SymbolInfo.h"
 
 CBC_EncoderContext::CBC_EncoderContext(const WideString& msg,
-                                       const WideString& ecLevel,
                                        bool bAllowRectangular)
     : m_bAllowRectangular(bAllowRectangular) {
   ByteString dststr = msg.ToUTF8();
diff --git a/fxbarcode/datamatrix/BC_EncoderContext.h b/fxbarcode/datamatrix/BC_EncoderContext.h
index a6ee8e6..eeec6cf 100644
--- a/fxbarcode/datamatrix/BC_EncoderContext.h
+++ b/fxbarcode/datamatrix/BC_EncoderContext.h
@@ -15,7 +15,6 @@
 class CBC_EncoderContext {
  public:
   CBC_EncoderContext(const WideString& msg,
-                     const WideString& ecLevel,
                      bool bAllowRectangular);
   ~CBC_EncoderContext();
 
diff --git a/fxbarcode/datamatrix/BC_HighLevelEncoder.cpp b/fxbarcode/datamatrix/BC_HighLevelEncoder.cpp
index 866ef80..358624f 100644
--- a/fxbarcode/datamatrix/BC_HighLevelEncoder.cpp
+++ b/fxbarcode/datamatrix/BC_HighLevelEncoder.cpp
@@ -65,9 +65,8 @@
 
 // static
 WideString CBC_HighLevelEncoder::EncodeHighLevel(const WideString& msg,
-                                                 const WideString& ecLevel,
                                                  bool bAllowRectangular) {
-  CBC_EncoderContext context(msg, ecLevel, bAllowRectangular);
+  CBC_EncoderContext context(msg, bAllowRectangular);
   if (context.HasCharactersOutsideISO88591Encoding())
     return WideString();
 
diff --git a/fxbarcode/datamatrix/BC_HighLevelEncoder.h b/fxbarcode/datamatrix/BC_HighLevelEncoder.h
index 4cc2d51..b560db8 100644
--- a/fxbarcode/datamatrix/BC_HighLevelEncoder.h
+++ b/fxbarcode/datamatrix/BC_HighLevelEncoder.h
@@ -27,7 +27,6 @@
 
   // Returns an empty string on failure.
   static WideString EncodeHighLevel(const WideString& msg,
-                                    const WideString& ecLevel,
                                     bool bAllowRectangular);
 
   static int32_t lookAheadTest(const WideString& msg,