summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_variabletext.cpp
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 /core/fpdfdoc/cpdf_variabletext.cpp
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 'core/fpdfdoc/cpdf_variabletext.cpp')
-rw-r--r--core/fpdfdoc/cpdf_variabletext.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/core/fpdfdoc/cpdf_variabletext.cpp b/core/fpdfdoc/cpdf_variabletext.cpp
index d2643e8d64..e12f9491a2 100644
--- a/core/fpdfdoc/cpdf_variabletext.cpp
+++ b/core/fpdfdoc/cpdf_variabletext.cpp
@@ -11,7 +11,6 @@
#include "core/fpdfapi/font/cpdf_font.h"
#include "core/fpdfdoc/cline.h"
-#include "core/fpdfdoc/cpvt_section.h"
#include "core/fpdfdoc/cpvt_word.h"
#include "core/fpdfdoc/cpvt_wordinfo.h"
#include "core/fpdfdoc/csection.h"
@@ -178,15 +177,6 @@ bool CPDF_VariableText::Iterator::GetLine(CPVT_Line& line) const {
return true;
}
-bool CPDF_VariableText::Iterator::GetSection(CPVT_Section& section) const {
- if (!pdfium::IndexInBounds(m_pVT->m_SectionArray, m_CurPos.nSecIndex))
- return false;
-
- CSection* pSection = m_pVT->m_SectionArray[m_CurPos.nSecIndex].get();
- section.rcSection = m_pVT->InToOut(pSection->m_SecInfo.rcSection);
- return true;
-}
-
CPDF_VariableText::CPDF_VariableText()
: m_nLimitChar(0),
m_nCharArray(0),