summaryrefslogtreecommitdiff
path: root/fxjs/cjs_runtime.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-04-18 22:48:22 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-18 22:48:22 +0000
commita1fe73272892b668bd5928a836ecc6303c81e2fd (patch)
tree959f9576d3cfe49ad48f7a765bec64d7a954d3ff /fxjs/cjs_runtime.cpp
parentfbecb9a5150d2c5391581933c8089e7249292171 (diff)
downloadpdfium-a1fe73272892b668bd5928a836ecc6303c81e2fd.tar.xz
Always build JS Runtime stubs even if V8 present.
Prerequisite for switching V8 off at run-time. Change-Id: I4b9f867185758350f5de3f57e771f63020df6e65 Reviewed-on: https://pdfium-review.googlesource.com/30994 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cjs_runtime.cpp')
-rw-r--r--fxjs/cjs_runtime.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/fxjs/cjs_runtime.cpp b/fxjs/cjs_runtime.cpp
index 6da52ad7ef..b9b9c03e1b 100644
--- a/fxjs/cjs_runtime.cpp
+++ b/fxjs/cjs_runtime.cpp
@@ -47,22 +47,6 @@
#endif // PDF_ENABLE_XFA
// static
-void IJS_Runtime::Initialize(unsigned int slot, void* isolate) {
- FXJS_Initialize(slot, reinterpret_cast<v8::Isolate*>(isolate));
-}
-
-// static
-void IJS_Runtime::Destroy() {
- FXJS_Release();
-}
-
-// static
-std::unique_ptr<IJS_Runtime> IJS_Runtime::Create(
- CPDFSDK_FormFillEnvironment* pFormFillEnv) {
- return pdfium::MakeUnique<CJS_Runtime>(pFormFillEnv);
-}
-
-// static
CJS_Runtime* CJS_Runtime::RuntimeFromIsolateCurrentContext(
v8::Isolate* pIsolate) {
return static_cast<CJS_Runtime*>(