summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()) {