From ce813f82c914ad560e429a0685553b1e3e8797ac Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 5 Oct 2017 15:12:58 -0400 Subject: Remove CPVT_WordProps Only one of the props was being used and that prop always had the same value. This CL removes CPVT_WordProps. Change-Id: I8cf64f0e9b80c5af18b8fc40ef7b602ffeec7f93 Reviewed-on: https://pdfium-review.googlesource.com/15672 Reviewed-by: Ryan Harrison Commit-Queue: dsinclair --- core/fpdfdoc/cpvt_wordinfo.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'core/fpdfdoc/cpvt_wordinfo.cpp') diff --git a/core/fpdfdoc/cpvt_wordinfo.cpp b/core/fpdfdoc/cpvt_wordinfo.cpp index 36859c2309..24ad4b8965 100644 --- a/core/fpdfdoc/cpvt_wordinfo.cpp +++ b/core/fpdfdoc/cpvt_wordinfo.cpp @@ -16,10 +16,7 @@ CPVT_WordInfo::CPVT_WordInfo() fWordTail(0.0f), nFontIndex(-1) {} -CPVT_WordInfo::CPVT_WordInfo(uint16_t word, - int32_t charset, - int32_t fontIndex, - CPVT_WordProps* pProps) +CPVT_WordInfo::CPVT_WordInfo(uint16_t word, int32_t charset, int32_t fontIndex) : Word(word), nCharset(charset), fWordX(0.0f), @@ -49,8 +46,4 @@ void CPVT_WordInfo::operator=(const CPVT_WordInfo& word) { fWordX = word.fWordX; fWordY = word.fWordY; fWordTail = word.fWordTail; - if (word.pWordProps) - pWordProps = pdfium::MakeUnique(*word.pWordProps); - else - pWordProps.reset(); } -- cgit v1.2.3