From 96ef1dd84d1d288f7eeb05ce97d19871e912bf64 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 25 Oct 2017 15:44:14 -0400 Subject: Remove unused CJS_Object methods The methods are unused, Removed. Change-Id: Icce60103bf0cc9364f3d5cc7c3032e959b9ffa09 Reviewed-on: https://pdfium-review.googlesource.com/16831 Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- fpdfsdk/javascript/JS_Object.cpp | 21 --------------------- fpdfsdk/javascript/JS_Object.h | 3 --- 2 files changed, 24 deletions(-) (limited to 'fpdfsdk') diff --git a/fpdfsdk/javascript/JS_Object.cpp b/fpdfsdk/javascript/JS_Object.cpp index cd86889337..01a4641b2e 100644 --- a/fpdfsdk/javascript/JS_Object.cpp +++ b/fpdfsdk/javascript/JS_Object.cpp @@ -14,18 +14,6 @@ CJS_EmbedObj::CJS_EmbedObj(CJS_Object* pJSObject) : m_pJSObject(pJSObject) {} CJS_EmbedObj::~CJS_EmbedObj() { } -void FreeObject(const v8::WeakCallbackInfo& data) { - CJS_Object* pJSObj = data.GetParameter(); - delete pJSObj; - CFXJS_Engine::FreeObjectPrivate(data.GetInternalField(0)); -} - -void DisposeObject(const v8::WeakCallbackInfo& data) { - CJS_Object* pJSObj = data.GetParameter(); - pJSObj->Dispose(); - data.SetSecondPassCallback(FreeObject); -} - CJS_Object::CJS_Object(v8::Local pObject) { m_pIsolate = pObject->GetIsolate(); m_pV8Object.Reset(m_pIsolate, pObject); @@ -33,13 +21,4 @@ CJS_Object::CJS_Object(v8::Local pObject) { CJS_Object::~CJS_Object() {} -void CJS_Object::MakeWeak() { - m_pV8Object.SetWeak(this, DisposeObject, - v8::WeakCallbackType::kInternalFields); -} - -void CJS_Object::Dispose() { - m_pV8Object.Reset(); -} - void CJS_Object::InitInstance(IJS_Runtime* pIRuntime) {} diff --git a/fpdfsdk/javascript/JS_Object.h b/fpdfsdk/javascript/JS_Object.h index 293b98acf6..e0a96a97cf 100644 --- a/fpdfsdk/javascript/JS_Object.h +++ b/fpdfsdk/javascript/JS_Object.h @@ -34,9 +34,6 @@ class CJS_Object { explicit CJS_Object(v8::Local pObject); virtual ~CJS_Object(); - void MakeWeak(); - void Dispose(); - virtual void InitInstance(IJS_Runtime* pIRuntime); v8::Local ToV8Object() { return m_pV8Object.Get(m_pIsolate); } -- cgit v1.2.3