summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk')
-rw-r--r--fpdfsdk/cpdfsdk_document.cpp8
-rw-r--r--fpdfsdk/cpdfsdk_document.h3
2 files changed, 0 insertions, 11 deletions
diff --git a/fpdfsdk/cpdfsdk_document.cpp b/fpdfsdk/cpdfsdk_document.cpp
index c597a1dab3..677dd835f8 100644
--- a/fpdfsdk/cpdfsdk_document.cpp
+++ b/fpdfsdk/cpdfsdk_document.cpp
@@ -128,14 +128,6 @@ FX_BOOL CPDFSDK_Document::ProcOpenAction() {
return FALSE;
}
-CPDF_OCContext* CPDFSDK_Document::GetOCContext() {
- if (!m_pOccontent) {
- m_pOccontent.reset(
- new CPDF_OCContext(GetPDFDocument(), CPDF_OCContext::View));
- }
- return m_pOccontent.get();
-}
-
void CPDFSDK_Document::RemovePageView(UnderlyingPageType* pUnderlyingPage) {
auto it = m_pageMap.find(pUnderlyingPage);
if (it == m_pageMap.end())
diff --git a/fpdfsdk/cpdfsdk_document.h b/fpdfsdk/cpdfsdk_document.h
index 921a8df972..3da229cc67 100644
--- a/fpdfsdk/cpdfsdk_document.h
+++ b/fpdfsdk/cpdfsdk_document.h
@@ -16,7 +16,6 @@
#include "fpdfsdk/fsdk_define.h"
#include "public/fpdf_formfill.h"
-class CPDF_OCContext;
class CPDFSDK_FormFillEnvironment;
class CPDFSDK_InterForm;
class CPDFSDK_PageView;
@@ -93,7 +92,6 @@ class CPDFSDK_Document : public CFX_Observable<CPDFSDK_Document> {
CPDFSDK_FormFillEnvironment* GetEnv() { return m_pEnv; }
void ProcJavascriptFun();
FX_BOOL ProcOpenAction();
- CPDF_OCContext* GetOCContext();
private:
std::map<UnderlyingPageType*, CPDFSDK_PageView*> m_pageMap;
@@ -101,7 +99,6 @@ class CPDFSDK_Document : public CFX_Observable<CPDFSDK_Document> {
std::unique_ptr<CPDFSDK_InterForm> m_pInterForm;
CPDFSDK_Annot::ObservedPtr m_pFocusAnnot;
CPDFSDK_FormFillEnvironment* m_pEnv;
- std::unique_ptr<CPDF_OCContext> m_pOccontent;
FX_BOOL m_bChangeMask;
FX_BOOL m_bBeingDestroyed;
};