summaryrefslogtreecommitdiff
path: root/core/fpdfapi
diff options
context:
space:
mode:
authorArtem Strygin <art-snake@yandex-team.ru>2017-07-26 16:17:53 +0300
committerChromium commit bot <commit-bot@chromium.org>2017-07-26 13:44:08 +0000
commit5c1c87c195333b0e3b826a0cd74ef8137fdbd1eb (patch)
treeb5d7e8fde6516fe4eec960b9db363def068a0ad4 /core/fpdfapi
parenta27c752a048ac2b88bc0c9c293917a7a0494d8a2 (diff)
downloadpdfium-5c1c87c195333b0e3b826a0cd74ef8137fdbd1eb.tar.xz
Remove useless code.
Change-Id: Ibb7e33dddd79d6266961ebdf56600fc5a091dcb8 Reviewed-on: https://pdfium-review.googlesource.com/9071 Commit-Queue: Art Snake <art-snake@yandex-team.ru> Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi')
-rw-r--r--core/fpdfapi/parser/cpdf_data_avail.cpp8
-rw-r--r--core/fpdfapi/parser/cpdf_data_avail.h1
2 files changed, 0 insertions, 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<IFX_SeekableReadStream> GetFileRead() const {
return m_pFileRead;
}