Remove CXFA_FMLexer::Token::ToDebugString().

There are no callers, even in debug builds.

Change-Id: I730c6353e00d22f4f9c905f7302ac82c42ee87a0
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/128370
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Thomas Sepez <tsepez@google.com>
diff --git a/xfa/fxfa/formcalc/cxfa_fmlexer.cpp b/xfa/fxfa/formcalc/cxfa_fmlexer.cpp
index cae5456..82a6e23 100644
--- a/xfa/fxfa/formcalc/cxfa_fmlexer.cpp
+++ b/xfa/fxfa/formcalc/cxfa_fmlexer.cpp
@@ -82,28 +82,6 @@
     {TOKendif, "endif"},
 };
 
-#ifndef NDEBUG
-constexpr auto kTokenStrings = fxcrt::ToArray<const char*>({
-    "TOKand",        "TOKlparen",     "TOKrparen",   "TOKmul",
-    "TOKplus",       "TOKcomma",      "TOKminus",    "TOKdot",
-    "TOKdiv",        "TOKlt",         "TOKassign",   "TOKgt",
-    "TOKlbracket",   "TOKrbracket",   "TOKor",       "TOKdotscream",
-    "TOKdotstar",    "TOKdotdot",     "TOKle",       "TOKne",
-    "TOKeq",         "TOKge",         "TOKdo",       "TOKkseq",
-    "TOKksge",       "TOKksgt",       "TOKif",       "TOKin",
-    "TOKksle",       "TOKkslt",       "TOKksne",     "TOKksor",
-    "TOKnull",       "TOKbreak",      "TOKksand",    "TOKend",
-    "TOKeof",        "TOKfor",        "TOKnan",      "TOKksnot",
-    "TOKvar",        "TOKthen",       "TOKelse",     "TOKexit",
-    "TOKdownto",     "TOKreturn",     "TOKinfinity", "TOKendwhile",
-    "TOKforeach",    "TOKendfunc",    "TOKelseif",   "TOKwhile",
-    "TOKendfor",     "TOKthrow",      "TOKstep",     "TOKupto",
-    "TOKcontinue",   "TOKfunc",       "TOKendif",    "TOKstar",
-    "TOKidentifier", "TOKunderscore", "TOKdollar",   "TOKexclamation",
-    "TOKcall",       "TOKstring",     "TOKnumber",   "TOKreserver",
-});
-#endif  // NDEBUG
-
 XFA_FM_TOKEN TokenizeIdentifier(WideStringView str) {
   const XFA_FMKeyword* result =
       std::find_if(std::begin(kKeyWords), std::end(kKeyWords),
@@ -129,16 +107,6 @@
 
 CXFA_FMLexer::Token::~Token() = default;
 
-#ifndef NDEBUG
-WideString CXFA_FMLexer::Token::ToDebugString() const {
-  WideString str = WideString::FromASCII("type = ");
-  str += WideString::FromASCII(kTokenStrings[m_type]);
-  str += WideString::FromASCII(", string = ");
-  str += m_string;
-  return str;
-}
-#endif  // NDEBUG
-
 CXFA_FMLexer::CXFA_FMLexer(WideStringView wsFormCalc)
     : m_spInput(wsFormCalc.span()) {}
 
diff --git a/xfa/fxfa/formcalc/cxfa_fmlexer.h b/xfa/fxfa/formcalc/cxfa_fmlexer.h
index 03f6d05..bf4314a 100644
--- a/xfa/fxfa/formcalc/cxfa_fmlexer.h
+++ b/xfa/fxfa/formcalc/cxfa_fmlexer.h
@@ -96,9 +96,6 @@
 
     XFA_FM_TOKEN GetType() const { return m_type; }
     WideStringView GetString() const { return m_string; }
-#ifndef NDEBUG
-    WideString ToDebugString() const;
-#endif  // NDEBUG
 
    private:
     XFA_FM_TOKEN m_type = TOKreserver;