summaryrefslogtreecommitdiff
path: root/core/fpdftext
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-10-04 18:41:22 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-04 18:41:22 +0000
commit38772e9f7456021df78eaea3258c63e8c39cf309 (patch)
treec349abb1b477a91bbbdea5fbcbb177394c4eb8ae /core/fpdftext
parentd86d6a737e2b7f51a6ac245b611e32bf0fc25d29 (diff)
downloadpdfium-38772e9f7456021df78eaea3258c63e8c39cf309.tar.xz
Remove more uncalled methods in core/
Change-Id: I10679c9d28eb495c6bc21fd1355cb3ef330a1209 Reviewed-on: https://pdfium-review.googlesource.com/c/43471 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdftext')
-rw-r--r--core/fpdftext/cpdf_textpage.cpp34
-rw-r--r--core/fpdftext/cpdf_textpage.h1
2 files changed, 0 insertions, 35 deletions
diff --git a/core/fpdftext/cpdf_textpage.cpp b/core/fpdftext/cpdf_textpage.cpp
index 8c110b6814..411ba398ae 100644
--- a/core/fpdftext/cpdf_textpage.cpp
+++ b/core/fpdftext/cpdf_textpage.cpp
@@ -470,40 +470,6 @@ void CPDF_TextPage::GetCharInfo(int index, FPDF_CHAR_INFO* info) const {
info->m_Matrix = charinfo.m_Matrix;
}
-void CPDF_TextPage::CheckMarkedContentObject(int32_t* pStart,
- int32_t* pCount) const {
- int start = *pStart;
- const int nCount = *pCount;
- const PAGECHAR_INFO charinfo = m_CharList[start];
- const PAGECHAR_INFO charinfo2 = m_CharList[start + nCount - 1];
- if (charinfo.m_Flag == FPDFTEXT_CHAR_PIECE) {
- PAGECHAR_INFO charinfo1 = charinfo;
- while (FPDFTEXT_CHAR_PIECE == charinfo1.m_Flag &&
- charinfo1.m_Index == charinfo.m_Index) {
- --start;
- if (start < 0)
- break;
- charinfo1 = m_CharList[start];
- }
- ++start;
- *pStart = start;
- }
- if (charinfo2.m_Flag == FPDFTEXT_CHAR_PIECE) {
- PAGECHAR_INFO charinfo3 = charinfo2;
- int endIndex = start + nCount - 1;
- const int innerCount = CountChars();
- while (FPDFTEXT_CHAR_PIECE == charinfo3.m_Flag &&
- charinfo3.m_Index == charinfo2.m_Index) {
- ++endIndex;
- if (endIndex >= innerCount)
- break;
- charinfo3 = m_CharList[endIndex];
- }
- --endIndex;
- *pCount = endIndex - start + 1;
- }
-}
-
WideString CPDF_TextPage::GetPageText(int start, int count) const {
if (start < 0 || start >= CountChars() || count <= 0 || !m_bIsParsed ||
m_CharList.empty() || m_TextBuf.GetLength() == 0) {
diff --git a/core/fpdftext/cpdf_textpage.h b/core/fpdftext/cpdf_textpage.h
index 90b45bd96b..7ab27024c8 100644
--- a/core/fpdftext/cpdf_textpage.h
+++ b/core/fpdftext/cpdf_textpage.h
@@ -144,7 +144,6 @@ class CPDF_TextPage {
void CloseTempLine();
FPDFText_MarkedContent PreMarkedContent(PDFTEXT_Obj pObj);
void ProcessMarkedContent(PDFTEXT_Obj pObj);
- void CheckMarkedContentObject(int32_t* pStart, int32_t* pCount) const;
void FindPreviousTextObject();
void AddCharInfoByLRDirection(wchar_t wChar, const PAGECHAR_INFO& info);
void AddCharInfoByRLDirection(wchar_t wChar, const PAGECHAR_INFO& info);