diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-10-04 00:26:17 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-04 00:26:17 +0000 |
commit | 912f2d154162cef0dcb59f030a45b1f4f024f78a (patch) | |
tree | 035caa58cdc7154f75ea9778fc027d95eec85449 /core/fpdfdoc/cpdf_variabletext.cpp | |
parent | 80482dc264c537945f95b0419ba4f9a70d6ae4cd (diff) | |
download | pdfium-912f2d154162cef0dcb59f030a45b1f4f024f78a.tar.xz |
Remove several more unused methods from core/
Change-Id: I891add4e91c7ee58b34974fed6d73d17c297e759
Reviewed-on: https://pdfium-review.googlesource.com/c/43459
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfdoc/cpdf_variabletext.cpp')
-rw-r--r-- | core/fpdfdoc/cpdf_variabletext.cpp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/core/fpdfdoc/cpdf_variabletext.cpp b/core/fpdfdoc/cpdf_variabletext.cpp index ddc3bb4459..994a7a184f 100644 --- a/core/fpdfdoc/cpdf_variabletext.cpp +++ b/core/fpdfdoc/cpdf_variabletext.cpp @@ -572,45 +572,6 @@ CPVT_WordPlace CPDF_VariableText::AddWord(const CPVT_WordPlace& place, return m_SectionArray[newplace.nSecIndex]->AddWord(newplace, wordinfo); } -bool CPDF_VariableText::GetWordInfo(const CPVT_WordPlace& place, - CPVT_WordInfo& wordinfo) { - if (!pdfium::IndexInBounds(m_SectionArray, place.nSecIndex)) - return false; - - CSection* pSection = m_SectionArray[place.nSecIndex].get(); - if (!pdfium::IndexInBounds(pSection->m_WordArray, place.nWordIndex)) - return false; - - wordinfo = *pSection->m_WordArray[place.nWordIndex]; - return true; -} - -bool CPDF_VariableText::SetWordInfo(const CPVT_WordPlace& place, - const CPVT_WordInfo& wordinfo) { - if (!pdfium::IndexInBounds(m_SectionArray, place.nSecIndex)) - return false; - - CSection* pSection = m_SectionArray[place.nSecIndex].get(); - if (!pdfium::IndexInBounds(pSection->m_WordArray, place.nWordIndex)) - return false; - - *pSection->m_WordArray[place.nWordIndex] = wordinfo; - return true; -} - -bool CPDF_VariableText::GetLineInfo(const CPVT_WordPlace& place, - CPVT_LineInfo& lineinfo) { - if (!pdfium::IndexInBounds(m_SectionArray, place.nSecIndex)) - return false; - - CSection* pSection = m_SectionArray[place.nSecIndex].get(); - if (!pdfium::IndexInBounds(pSection->m_LineArray, place.nLineIndex)) - return false; - - lineinfo = pSection->m_LineArray[place.nLineIndex]->m_LineInfo; - return true; -} - void CPDF_VariableText::SetPlateRect(const CFX_FloatRect& rect) { m_rcPlate = rect; } |