diff options
author | thestig <thestig@chromium.org> | 2016-05-10 13:24:16 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-10 13:24:17 -0700 |
commit | 2c3a16a7698ba15476173e849f82c97ea3da9939 (patch) | |
tree | e0a66aaa5e28af2cf5fea56f25306a8f531f892c /core/fpdfdoc/cpvt_generateap.cpp | |
parent | 245ae9ce1bb854e5e3da400c6d8c8061d81953a9 (diff) | |
download | pdfium-2c3a16a7698ba15476173e849f82c97ea3da9939.tar.xz |
Remove some dead code.
- No caller checks the CPDF_VariableText::SetProvider() return value.
- IFX_Edit::SetVTProvider() is unused.
- CFX_ListItem::SetCaret() is useless.
- CFX_List::SetItemCaret() is also useless.
- CPVT_GenerateAP::GenerateEditAP() has a param that's always NULL.
Review-Url: https://codereview.chromium.org/1960183003
Diffstat (limited to 'core/fpdfdoc/cpvt_generateap.cpp')
-rw-r--r-- | core/fpdfdoc/cpvt_generateap.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/core/fpdfdoc/cpvt_generateap.cpp b/core/fpdfdoc/cpvt_generateap.cpp index ec1b9fbf4e..5ec9513e84 100644 --- a/core/fpdfdoc/cpvt_generateap.cpp +++ b/core/fpdfdoc/cpvt_generateap.cpp @@ -503,23 +503,16 @@ CFX_ByteString CPVT_GenerateAP::GenerateEditAP( CPDF_VariableText::Iterator* pIterator, const CFX_FloatPoint& ptOffset, FX_BOOL bContinuous, - uint16_t SubWord, - const CPVT_WordRange* pVisible) { + uint16_t SubWord) { CFX_ByteTextBuf sEditStream, sLineStream, sWords; CFX_FloatPoint ptOld(0.0f, 0.0f), ptNew(0.0f, 0.0f); int32_t nCurFontIndex = -1; if (pIterator) { - if (pVisible) - pIterator->SetAt(pVisible->BeginPos); - else - pIterator->SetAt(0); + pIterator->SetAt(0); CPVT_WordPlace oldplace; while (pIterator->NextWord()) { CPVT_WordPlace place = pIterator->GetAt(); - if (pVisible && place.WordCmp(pVisible->EndPos) > 0) - break; - if (bContinuous) { if (place.LineCmp(oldplace) != 0) { if (sWords.GetSize() > 0) { |