From 912f2d154162cef0dcb59f030a45b1f4f024f78a Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 4 Oct 2018 00:26:17 +0000 Subject: Remove several more unused methods from core/ Change-Id: I891add4e91c7ee58b34974fed6d73d17c297e759 Reviewed-on: https://pdfium-review.googlesource.com/c/43459 Reviewed-by: Lei Zhang Commit-Queue: Lei Zhang --- core/fpdfdoc/cpdf_variabletext.cpp | 39 -------------------------------------- 1 file changed, 39 deletions(-) (limited to 'core/fpdfdoc/cpdf_variabletext.cpp') 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; } -- cgit v1.2.3