diff options
author | tsepez <tsepez@chromium.org> | 2016-07-21 12:12:38 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-21 12:12:38 -0700 |
commit | 3999d6a4ec124b2e5f68aadb7b51f387733a96b5 (patch) | |
tree | cfbc9bac40219891dc7b16948d2cd259deba3793 /fpdfsdk/javascript | |
parent | 1235f6ff37394e7df2eecce539762d45e8860a5c (diff) | |
download | pdfium-3999d6a4ec124b2e5f68aadb7b51f387733a96b5.tar.xz |
Remove unused methods from JS_Object.cpp
Review-Url: https://codereview.chromium.org/2170913003
Diffstat (limited to 'fpdfsdk/javascript')
-rw-r--r-- | fpdfsdk/javascript/JS_Object.cpp | 16 | ||||
-rw-r--r-- | fpdfsdk/javascript/JS_Object.h | 8 |
2 files changed, 0 insertions, 24 deletions
diff --git a/fpdfsdk/javascript/JS_Object.cpp b/fpdfsdk/javascript/JS_Object.cpp index 0d190a7fa4..8a4dc0fa33 100644 --- a/fpdfsdk/javascript/JS_Object.cpp +++ b/fpdfsdk/javascript/JS_Object.cpp @@ -75,26 +75,10 @@ void CJS_Object::Dispose() { m_pV8Object.Reset(); } -FX_BOOL CJS_Object::IsType(const FX_CHAR* sClassName) { - return TRUE; -} - -CFX_ByteString CJS_Object::GetClassName() { - return ""; -} - void CJS_Object::InitInstance(IJS_Runtime* pIRuntime) {} void CJS_Object::ExitInstance() {} -int CJS_Object::MsgBox(CPDFDoc_Environment* pApp, - const FX_WCHAR* swMsg, - const FX_WCHAR* swTitle, - FX_UINT nType, - FX_UINT nIcon) { - return FXJS_MsgBox(pApp, swMsg, swTitle, nType, nIcon); -} - void CJS_Object::Alert(CJS_Context* pContext, const FX_WCHAR* swMsg) { if (pContext->IsMsgBoxEnabled()) { CPDFDoc_Environment* pApp = pContext->GetReaderApp(); diff --git a/fpdfsdk/javascript/JS_Object.h b/fpdfsdk/javascript/JS_Object.h index 7105ec6cd0..146a7c93b5 100644 --- a/fpdfsdk/javascript/JS_Object.h +++ b/fpdfsdk/javascript/JS_Object.h @@ -46,9 +46,6 @@ class CJS_Object { void MakeWeak(); void Dispose(); - virtual FX_BOOL IsType(const FX_CHAR* sClassName); - virtual CFX_ByteString GetClassName(); - virtual void InitInstance(IJS_Runtime* pIRuntime); virtual void ExitInstance(); @@ -58,11 +55,6 @@ class CJS_Object { void SetEmbedObject(CJS_EmbedObj* pObj) { m_pEmbedObj.reset(pObj); } CJS_EmbedObj* GetEmbedObject() const { return m_pEmbedObj.get(); } - static int MsgBox(CPDFDoc_Environment* pApp, - const FX_WCHAR* swMsg, - const FX_WCHAR* swTitle, - FX_UINT nType, - FX_UINT nIcon); static void Alert(CJS_Context* pContext, const FX_WCHAR* swMsg); v8::Isolate* GetIsolate() { return m_pIsolate; } |