Skip to content

Commit

Permalink
Simplify bundle loading a little bit.
Browse files Browse the repository at this point in the history
Reviewed By: amnn

Differential Revision: D4306559

fbshipit-source-id: 9733c508aa5a905251e96855794a59ef79d61cfa
  • Loading branch information
Michał Gregorczyk authored and Facebook Github Bot committed Dec 10, 2016
1 parent 1103a91 commit 4691909
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions ReactCommon/cxxreact/Executor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 0 additions & 6 deletions ReactCommon/cxxreact/JSCExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4691909

Please sign in to comment.