From 93f191bb011508a8d4e66746135e8ba8e9583870 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 6 Nov 2015 08:19:44 -0800 Subject: Remove FXJS_GetRuntime Its pointless to have a function that gets the isolate given a v8::object, since v8 gives us that directly. Also remove some CreationContext() calls, since they are only used to get the isolate, and we can do so directly. R=jochen@chromium.org Review URL: https://codereview.chromium.org/1413733004 . --- fpdfsdk/src/jsapi/fxjs_v8.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'fpdfsdk/src/jsapi') diff --git a/fpdfsdk/src/jsapi/fxjs_v8.cpp b/fpdfsdk/src/jsapi/fxjs_v8.cpp index 2fb3e13064..8180f76e67 100644 --- a/fpdfsdk/src/jsapi/fxjs_v8.cpp +++ b/fpdfsdk/src/jsapi/fxjs_v8.cpp @@ -442,15 +442,6 @@ int FXJS_GetObjDefnID(v8::Local pObj) { return -1; } -v8::Isolate* FXJS_GetRuntime(v8::Local pObj) { - if (pObj.IsEmpty()) - return NULL; - v8::Local context = pObj->CreationContext(); - if (context.IsEmpty()) - return NULL; - return context->GetIsolate(); -} - void FXJS_Error(v8::Isolate* pIsolate, const CFX_WideString& message) { // Conversion from pdfium's wchar_t wide-strings to v8's uint16_t // wide-strings isn't handled by v8, so use UTF8 as a common -- cgit v1.2.3