From 837b1751975e4cbcb1ff56d0e68c1ac2b8dbd712 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 6 Feb 2018 20:42:36 +0000 Subject: Remove unused FreeObjectPrivate() overload. Change-Id: Idb1f6879a78e4ada8129250eedd37142b6f26588 Reviewed-on: https://pdfium-review.googlesource.com/25530 Reviewed-by: dsinclair Commit-Queue: Tom Sepez --- fxjs/fxjs_v8.cpp | 5 ----- fxjs/fxjs_v8.h | 1 - 2 files changed, 6 deletions(-) diff --git a/fxjs/fxjs_v8.cpp b/fxjs/fxjs_v8.cpp index 2161076e36..7869bab038 100644 --- a/fxjs/fxjs_v8.cpp +++ b/fxjs/fxjs_v8.cpp @@ -287,11 +287,6 @@ int CFXJS_Engine::GetObjDefnID(v8::Local pObj) { return pData ? pData->m_ObjDefID : -1; } -// static -void CFXJS_Engine::FreeObjectPrivate(void* pPerObjectData) { - delete static_cast(pPerObjectData); -} - // static void CFXJS_Engine::FreeObjectPrivate(v8::Local pObj) { CFXJS_PerObjectData* pData = CFXJS_PerObjectData::GetFromObject(pObj); diff --git a/fxjs/fxjs_v8.h b/fxjs/fxjs_v8.h index 7091b0e43e..9dcaeb84c1 100644 --- a/fxjs/fxjs_v8.h +++ b/fxjs/fxjs_v8.h @@ -182,7 +182,6 @@ class CFXJS_Engine : public CJS_V8 { void SetObjectPrivate(v8::Local pObj, std::unique_ptr p); CJS_Object* GetObjectPrivate(v8::Local pObj); - static void FreeObjectPrivate(void* pPerObjectData); static void FreeObjectPrivate(v8::Local pObj); void Error(const WideString& message); -- cgit v1.2.3