From b5b7972cdc064498b45d230225aa92fee1acc7b6 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 5 Feb 2018 15:13:09 +0000 Subject: Move const arrays to CFXJS_Engine from CJS_V8 CJS_V8 is shared by both the non-xfa and xfa-side JS engines, but the const arrays are only used by the non-xfa side. Change-Id: Ic5ed8238df1a14dde8a4463b2388b4a7a923e392 Reviewed-on: https://pdfium-review.googlesource.com/25250 Commit-Queue: dsinclair Reviewed-by: dsinclair --- fxjs/cjs_v8.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'fxjs/cjs_v8.h') diff --git a/fxjs/cjs_v8.h b/fxjs/cjs_v8.h index 1a8d15b500..135930902e 100644 --- a/fxjs/cjs_v8.h +++ b/fxjs/cjs_v8.h @@ -60,9 +60,6 @@ class CJS_V8 { unsigned index, v8::Local pValue); - void SetConstArray(const WideString& name, v8::Local array); - v8::Local GetConstArray(const WideString& name); - // Objects. std::vector GetObjectPropertyNames(v8::Local pObj); v8::Local GetObjectProperty(v8::Local pObj, @@ -73,11 +70,9 @@ class CJS_V8 { protected: void SetIsolate(v8::Isolate* pIsolate) { m_isolate = pIsolate; } - void ClearConstArray() { m_ConstArrays.clear(); } private: v8::Isolate* m_isolate; - std::map> m_ConstArrays; }; #endif // FXJS_CJS_V8_H_ -- cgit v1.2.3