summaryrefslogtreecommitdiff
path: root/fpdfsdk/pwl
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-10-05 15:29:59 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-10-05 19:48:26 +0000
commit7f1c6a5cd4ad7fea6b7534db2cb4517b75840dbc (patch)
tree67b3fa0aef91daa047c73a97cdc44e3ac4bd32d7 /fpdfsdk/pwl
parent3bea564a5f6d1a66c082ec4df8c999fccf7ec046 (diff)
downloadpdfium-7f1c6a5cd4ad7fea6b7534db2cb4517b75840dbc.tar.xz
Remove CPVT_Section
The CPVT_Section only contained a single rect which was used in one place. The place it was used never used the variable it assigned it too. Removed. Change-Id: I5c3fccff4fad6deca4945e301bffb5348692b23c Reviewed-on: https://pdfium-review.googlesource.com/15675 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/pwl')
-rw-r--r--fpdfsdk/pwl/cpwl_edit_ctrl.cpp1
-rw-r--r--fpdfsdk/pwl/cpwl_edit_impl.cpp5
2 files changed, 0 insertions, 6 deletions
diff --git a/fpdfsdk/pwl/cpwl_edit_ctrl.cpp b/fpdfsdk/pwl/cpwl_edit_ctrl.cpp
index 2fe6e28c59..06b5dedbf0 100644
--- a/fpdfsdk/pwl/cpwl_edit_ctrl.cpp
+++ b/fpdfsdk/pwl/cpwl_edit_ctrl.cpp
@@ -6,7 +6,6 @@
#include "fpdfsdk/pwl/cpwl_edit_ctrl.h"
-#include "core/fpdfdoc/cpvt_section.h"
#include "core/fpdfdoc/cpvt_word.h"
#include "core/fxge/fx_font.h"
#include "fpdfsdk/pwl/cpwl_caret.h"
diff --git a/fpdfsdk/pwl/cpwl_edit_impl.cpp b/fpdfsdk/pwl/cpwl_edit_impl.cpp
index 7ed38f1ce2..7f6d8537d4 100644
--- a/fpdfsdk/pwl/cpwl_edit_impl.cpp
+++ b/fpdfsdk/pwl/cpwl_edit_impl.cpp
@@ -19,7 +19,6 @@
#include "core/fpdfapi/parser/fpdf_parser_decode.h"
#include "core/fpdfapi/render/cpdf_renderoptions.h"
#include "core/fpdfapi/render/cpdf_textrenderer.h"
-#include "core/fpdfdoc/cpvt_section.h"
#include "core/fpdfdoc/cpvt_word.h"
#include "core/fpdfdoc/ipvt_fontmap.h"
#include "core/fxcrt/autorestorer.h"
@@ -1562,12 +1561,10 @@ bool CPWL_EditImpl::Backspace(bool bAddUndo, bool bPaint) {
if (!m_pVT->IsValid() || m_wpCaret == m_pVT->GetBeginWordPlace())
return false;
- CPVT_Section section;
CPVT_Word word;
if (bAddUndo) {
CPDF_VariableText::Iterator* pIterator = m_pVT->GetIterator();
pIterator->SetAt(m_wpCaret);
- pIterator->GetSection(section);
pIterator->GetWord(word);
}
m_pVT->UpdateWordPlace(m_wpCaret);
@@ -1602,12 +1599,10 @@ bool CPWL_EditImpl::Delete(bool bAddUndo, bool bPaint) {
if (!m_pVT->IsValid() || m_wpCaret == m_pVT->GetEndWordPlace())
return false;
- CPVT_Section section;
CPVT_Word word;
if (bAddUndo) {
CPDF_VariableText::Iterator* pIterator = m_pVT->GetIterator();
pIterator->SetAt(m_pVT->GetNextWordPlace(m_wpCaret));
- pIterator->GetSection(section);
pIterator->GetWord(word);
}
m_pVT->UpdateWordPlace(m_wpCaret);