mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-22 11:16:06 +08:00
simplify handleMemoryPressure conditionalization, delete some dead code
Reviewed By: javache Differential Revision: D7803912 fbshipit-source-id: 0bab4be07fc006a208caa75f94b5716c99b5d265
This commit is contained in:
committed by
Facebook Github Bot
parent
09f3d7ab49
commit
042449f24a
@@ -47,7 +47,6 @@ rn_xplat_cxx_library(
|
||||
"-DLOG_TAG=\"ReactNativeJNI\"",
|
||||
"-DWITH_FBSYSTRACE=1",
|
||||
"-DWITH_INSPECTOR=1",
|
||||
"-DWITH_JSC_MEMORY_PRESSURE=1",
|
||||
],
|
||||
soname = "libreactnativejni.$(ext)",
|
||||
visibility = [
|
||||
|
||||
@@ -259,9 +259,7 @@ jlong CatalystInstanceImpl::getJavaScriptContext() {
|
||||
}
|
||||
|
||||
void CatalystInstanceImpl::handleMemoryPressure(int pressureLevel) {
|
||||
#ifdef WITH_JSC_MEMORY_PRESSURE
|
||||
instance_->handleMemoryPressure(pressureLevel);
|
||||
#endif
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user