summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpvt_wordinfo.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-10-05 15:12:58 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-10-05 19:31:08 +0000
commitce813f82c914ad560e429a0685553b1e3e8797ac (patch)
tree7410dfd203edbaeca8989566143ac166a6fb5ce0 /core/fpdfdoc/cpvt_wordinfo.cpp
parent480ca10f7a20dd65921dcec046d91b503f3599c3 (diff)
downloadpdfium-ce813f82c914ad560e429a0685553b1e3e8797ac.tar.xz
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 <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfdoc/cpvt_wordinfo.cpp')
-rw-r--r--core/fpdfdoc/cpvt_wordinfo.cpp9
1 files changed, 1 insertions, 8 deletions
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<CPVT_WordProps>(*word.pWordProps);
- else
- pWordProps.reset();
}