From 46919095aaf07c6382e093651bafe5909a79eb27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Gregorczyk?= Date: Fri, 9 Dec 2016 17:48:59 -0800 Subject: [PATCH] Simplify bundle loading a little bit. Reviewed By: amnn Differential Revision: D4306559 fbshipit-source-id: 9733c508aa5a905251e96855794a59ef79d61cfa --- ReactCommon/cxxreact/Executor.h | 3 +-- ReactCommon/cxxreact/JSCExecutor.cpp | 6 ------ 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/ReactCommon/cxxreact/Executor.h b/ReactCommon/cxxreact/Executor.h index 7120c15c1..cb7e00157 100644 --- a/ReactCommon/cxxreact/Executor.h +++ b/ReactCommon/cxxreact/Executor.h @@ -22,8 +22,7 @@ namespace react { enum { UNPACKED_JS_SOURCE = (1 << 0), - UNPACKED_BC_CACHE = (1 << 1), - UNPACKED_BYTECODE = (1 << 2), + UNPACKED_BYTECODE = (1 << 1), }; class JSExecutor; diff --git a/ReactCommon/cxxreact/JSCExecutor.cpp b/ReactCommon/cxxreact/JSCExecutor.cpp index 6383d26fb..d31ac38af 100644 --- a/ReactCommon/cxxreact/JSCExecutor.cpp +++ b/ReactCommon/cxxreact/JSCExecutor.cpp @@ -347,12 +347,6 @@ void JSCExecutor::loadApplicationScript( return loadApplicationScript(std::move(jsScriptBigString), sourceURL); } - #if defined(WITH_FB_JSC_TUNING) && defined(__ANDROID__) - if (flags & UNPACKED_BC_CACHE) { - configureJSCBCCache(m_context, bundlePath); - } - #endif - sourceCode = JSCreateSourceCode( jsScriptBigString->fd(), jsSourceURL,