mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
simplify handleMemoryPressure conditionalization, delete some dead code
Reviewed By: javache Differential Revision: D7803912 fbshipit-source-id: 0bab4be07fc006a208caa75f94b5716c99b5d265
This commit is contained in:
1 parent
09f3d7ab49
commit
042449f24a
8 files changed
+3
-17
No files matched your search
@@ -696,12 +696,12 @@ bool JSCExecutor::isInspectable() {
|
||||
return canUseInspector(m_context);
|
||||
}
|
||||
|
||||
#ifdef WITH_JSC_MEMORY_PRESSURE
|
||||
void JSCExecutor::handleMemoryPressure(int pressureLevel) {
|
||||
#ifdef WITH_JSC_MEMORY_PRESSURE
|
||||
JSHandleMemoryPressure(
|
||||
this, m_context, static_cast<JSMemoryPressure>(pressureLevel));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void JSCExecutor::flushQueueImmediate(Value&& queue) {
|
||||
auto queueStr = queue.toJSONString();
|
||||
|
||||
Reference in new issue
Block a user