mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 12:25:59 +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
@@ -6,7 +6,6 @@
|
||||
#include <memory>
|
||||
|
||||
#include <cxxreact/NativeToJsBridge.h>
|
||||
#include <jschelpers/Value.h>
|
||||
|
||||
#ifndef RN_EXPORT
|
||||
#define RN_EXPORT __attribute__((visibility("default")))
|
||||
@@ -66,9 +65,7 @@ public:
|
||||
const ModuleRegistry &getModuleRegistry() const;
|
||||
ModuleRegistry &getModuleRegistry();
|
||||
|
||||
#ifdef WITH_JSC_MEMORY_PRESSURE
|
||||
void handleMemoryPressure(int pressureLevel);
|
||||
#endif
|
||||
|
||||
private:
|
||||
void callNativeModules(folly::dynamic &&calls, bool isEndOfBatch);
|
||||
|
||||
Reference in New Issue
Block a user