From b7f9d8ee6d9c1d9c0dfa2c64b7ad5fee4032d513 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 5 Oct 2017 15:38:39 -0400 Subject: 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 Commit-Queue: dsinclair --- core/fpdfdoc/cpvt_sectioninfo.cpp | 4 +--- core/fpdfdoc/cpvt_sectioninfo.h | 1 - core/fpdfdoc/ctypeset.cpp | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) (limited to 'core') 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(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()) { -- cgit v1.2.3