From 5c1c87c195333b0e3b826a0cd74ef8137fdbd1eb Mon Sep 17 00:00:00 2001 From: Artem Strygin Date: Wed, 26 Jul 2017 16:17:53 +0300 Subject: Remove useless code. Change-Id: Ibb7e33dddd79d6266961ebdf56600fc5a091dcb8 Reviewed-on: https://pdfium-review.googlesource.com/9071 Commit-Queue: Art Snake Commit-Queue: dsinclair Reviewed-by: dsinclair --- core/fpdfapi/parser/cpdf_data_avail.cpp | 8 -------- core/fpdfapi/parser/cpdf_data_avail.h | 1 - 2 files changed, 9 deletions(-) diff --git a/core/fpdfapi/parser/cpdf_data_avail.cpp b/core/fpdfapi/parser/cpdf_data_avail.cpp index 6f12260eae..05f8272171 100644 --- a/core/fpdfapi/parser/cpdf_data_avail.cpp +++ b/core/fpdfapi/parser/cpdf_data_avail.cpp @@ -1568,14 +1568,6 @@ bool CPDF_DataAvail::CheckResources(DownloadHints* pHints) { return true; } -void CPDF_DataAvail::GetLinearizedMainXRefInfo(FX_FILESIZE* pPos, - uint32_t* pSize) { - if (pPos) - *pPos = m_dwLastXRefOffset; - if (pSize) - *pSize = (uint32_t)(m_dwFileLen - m_dwLastXRefOffset); -} - int CPDF_DataAvail::GetPageCount() const { if (m_pLinearized) return m_pLinearized->GetPageCount(); diff --git a/core/fpdfapi/parser/cpdf_data_avail.h b/core/fpdfapi/parser/cpdf_data_avail.h index f47c859697..596fb0bd2e 100644 --- a/core/fpdfapi/parser/cpdf_data_avail.h +++ b/core/fpdfapi/parser/cpdf_data_avail.h @@ -107,7 +107,6 @@ class CPDF_DataAvail final { DocFormStatus IsFormAvail(DownloadHints* pHints); DocLinearizationStatus IsLinearizedPDF(); bool IsLinearized(); - void GetLinearizedMainXRefInfo(FX_FILESIZE* pPos, uint32_t* pSize); CFX_RetainPtr GetFileRead() const { return m_pFileRead; } -- cgit v1.2.3