summaryrefslogtreecommitdiff
path: root/xfa/fxfa/fm2js/cxfa_fmlexer.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-02-20 21:57:59 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-02-20 21:57:59 +0000
commit676658cfccf3f8cf820dfa63a7b6e2f9a76c2e18 (patch)
tree0ce81b0a8d51a6ec8e1dfce2c5119c7fcb73049f /xfa/fxfa/fm2js/cxfa_fmlexer.cpp
parent4102f7b86e415b2a254521a1fc52e11bdc932864 (diff)
downloadpdfium-676658cfccf3f8cf820dfa63a7b6e2f9a76c2e18.tar.xz
[formcalc] Remove unused line parameter
The recorded line number from the formcalc parse is never used. This Cl removes the parameter and removes the need to pass it through all of the constructors. Change-Id: Ice716cc4880dd17dc05bffcdce1dc1e4745108ea Reviewed-on: https://pdfium-review.googlesource.com/27412 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/fm2js/cxfa_fmlexer.cpp')
-rw-r--r--xfa/fxfa/fm2js/cxfa_fmlexer.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/xfa/fxfa/fm2js/cxfa_fmlexer.cpp b/xfa/fxfa/fm2js/cxfa_fmlexer.cpp
index 78e99a53e3..41989f0a2d 100644
--- a/xfa/fxfa/fm2js/cxfa_fmlexer.cpp
+++ b/xfa/fxfa/fm2js/cxfa_fmlexer.cpp
@@ -131,7 +131,6 @@ WideString CXFA_FMToken::ToDebugString() const {
CXFA_FMLexer::CXFA_FMLexer(const WideStringView& wsFormCalc)
: m_cursor(wsFormCalc.unterminated_c_str()),
m_end(m_cursor + wsFormCalc.GetLength() - 1),
- m_current_line(1),
m_lexer_error(false) {}
CXFA_FMLexer::~CXFA_FMLexer() {}
@@ -148,7 +147,6 @@ CXFA_FMToken CXFA_FMLexer::NextToken() {
switch (*m_cursor) {
case '\n':
- ++m_current_line;
++m_cursor;
break;
case '\r':
@@ -389,7 +387,6 @@ void CXFA_FMLexer::AdvanceForComment() {
return;
}
if (*m_cursor == L'\n') {
- ++m_current_line;
++m_cursor;
return;
}