summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-10-05 15:38:39 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-10-05 19:56:36 +0000
commitb7f9d8ee6d9c1d9c0dfa2c64b7ad5fee4032d513 (patch)
tree83f27632214fffa0bd0b1456df392dd20cef271f
parent7f1c6a5cd4ad7fea6b7534db2cb4517b75840dbc (diff)
downloadpdfium-b7f9d8ee6d9c1d9c0dfa2c64b7ad5fee4032d513.tar.xz
Remove unused CPVT_SectionInfo::nTotalLines
The nTotalLines member is set but never used. Removed. Change-Id: Iab59e0954fcdbab665cc477397a94cde66e6087e Reviewed-on: https://pdfium-review.googlesource.com/15710 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
-rw-r--r--core/fpdfdoc/cpvt_sectioninfo.cpp4
-rw-r--r--core/fpdfdoc/cpvt_sectioninfo.h1
-rw-r--r--core/fpdfdoc/ctypeset.cpp1
3 files changed, 1 insertions, 5 deletions
diff --git a/core/fpdfdoc/cpvt_sectioninfo.cpp b/core/fpdfdoc/cpvt_sectioninfo.cpp
index a23d3e45da..cb1dc8907b 100644
--- a/core/fpdfdoc/cpvt_sectioninfo.cpp
+++ b/core/fpdfdoc/cpvt_sectioninfo.cpp
@@ -7,7 +7,7 @@
#include "core/fpdfdoc/cpvt_sectioninfo.h"
#include "third_party/base/ptr_util.h"
-CPVT_SectionInfo::CPVT_SectionInfo() : rcSection(), nTotalLine(0) {}
+CPVT_SectionInfo::CPVT_SectionInfo() : rcSection() {}
CPVT_SectionInfo::~CPVT_SectionInfo() {}
@@ -18,7 +18,5 @@ CPVT_SectionInfo::CPVT_SectionInfo(const CPVT_SectionInfo& other) {
void CPVT_SectionInfo::operator=(const CPVT_SectionInfo& other) {
if (this == &other)
return;
-
rcSection = other.rcSection;
- nTotalLine = other.nTotalLine;
}
diff --git a/core/fpdfdoc/cpvt_sectioninfo.h b/core/fpdfdoc/cpvt_sectioninfo.h
index 9483a856a1..b39cdc9128 100644
--- a/core/fpdfdoc/cpvt_sectioninfo.h
+++ b/core/fpdfdoc/cpvt_sectioninfo.h
@@ -19,7 +19,6 @@ struct CPVT_SectionInfo {
void operator=(const CPVT_SectionInfo& other);
CPVT_FloatRect rcSection;
- int32_t nTotalLine;
};
#endif // CORE_FPDFDOC_CPVT_SECTIONINFO_H_
diff --git a/core/fpdfdoc/ctypeset.cpp b/core/fpdfdoc/ctypeset.cpp
index 090985e436..290b95e9b4 100644
--- a/core/fpdfdoc/ctypeset.cpp
+++ b/core/fpdfdoc/ctypeset.cpp
@@ -445,7 +445,6 @@ void CTypeset::OutputLines() {
int32_t nTotalLines =
pdfium::CollectionSize<int32_t>(m_pSection->m_LineArray);
if (nTotalLines > 0) {
- m_pSection->m_SecInfo.nTotalLine = nTotalLines;
for (int32_t l = 0; l < nTotalLines; l++) {
CLine* pLine = m_pSection->m_LineArray[l].get();
switch (m_pVT->GetAlignment()) {