summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-07-21 12:12:38 -0700
committerCommit bot <commit-bot@chromium.org>2016-07-21 12:12:38 -0700
commit3999d6a4ec124b2e5f68aadb7b51f387733a96b5 (patch)
treecfbc9bac40219891dc7b16948d2cd259deba3793 /fpdfsdk
parent1235f6ff37394e7df2eecce539762d45e8860a5c (diff)
downloadpdfium-3999d6a4ec124b2e5f68aadb7b51f387733a96b5.tar.xz
Remove unused methods from JS_Object.cpp
Review-Url: https://codereview.chromium.org/2170913003
Diffstat (limited to 'fpdfsdk')
-rw-r--r--fpdfsdk/javascript/JS_Object.cpp16
-rw-r--r--fpdfsdk/javascript/JS_Object.h8
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; }