Remove unused callFunctionReturnResultAndFlushedQueue

Summary: Changelog: [Internal] Remove unused BatchedBridge.callFunctionReturnResultAndFlushedQueue

Reviewed By: sammy-SC

Differential Revision: D19740946

fbshipit-source-id: 9919d52074180d0fcfb7c0929005f0d925578912
This commit is contained in:
Pieter De Baets authored and Facebook Github Bot committed 2020-02-05 13:02:06 -08:00
1 parent 30790be1b5
commit 46dcce0031
4 files changed
+2 -24

No files matched your search

+2 -19
View File
@@ -74,9 +74,6 @@ class MessageQueue {
(this: any).callFunctionReturnFlushedQueue = this.callFunctionReturnFlushedQueue.bind(
this,
);
(this: any).callFunctionReturnResultAndFlushedQueue = this.callFunctionReturnResultAndFlushedQueue.bind(
this,
);
(this: any).flushedQueue = this.flushedQueue.bind(this);
(this: any).invokeCallbackAndReturnFlushedQueue = this.invokeCallbackAndReturnFlushedQueue.bind(
this,
@@ -115,19 +112,6 @@ class MessageQueue {
return this.flushedQueue();
}
callFunctionReturnResultAndFlushedQueue(
module: string,
method: string,
args: any[],
): $TEMPORARY$array<?[Array<number>, Array<number>, Array<any>, number]> {
let result;
this.__guard(() => {
result = this.__callFunction(module, method, args);
});
return [result, this.flushedQueue()];
}
invokeCallbackAndReturnFlushedQueue(
cbID: number,
args: any[],
@@ -398,7 +382,7 @@ class MessageQueue {
Systrace.endEvent();
}
__callFunction(module: string, method: string, args: any[]): any {
__callFunction(module: string, method: string, args: any[]): void {
this._lastFlush = Date.now();
this._eventLoopStartTime = this._lastFlush;
if (__DEV__ || this.__spy) {
@@ -422,9 +406,8 @@ class MessageQueue {
method,
module,
);
const result = moduleMethods[method].apply(moduleMethods, args);
moduleMethods[method].apply(moduleMethods, args);
Systrace.endEvent();
return result;
}
__invokeCallback(cbID: number, args: any[]) {
@@ -60,7 +60,6 @@ RCT_EXPORT_METHOD(test:(__unused NSString *)a
" callFunctionReturnFlushedQueue: function() { return null; },"
" invokeCallbackAndReturnFlushedQueue: function() { return null; },"
" flushedQueue: function() { return null; },"
" callFunctionReturnResultAndFlushedQueue: function() { return null; },"
"};";
NSURL *tempDir = [NSURL fileURLWithPath:NSTemporaryDirectory() isDirectory:YES];
@@ -290,9 +290,6 @@ void JSIExecutor::bindBridge() {
*runtime_, "invokeCallbackAndReturnFlushedQueue");
flushedQueue_ =
batchedBridge.getPropertyAsFunction(*runtime_, "flushedQueue");
callFunctionReturnResultAndFlushedQueue_ =
batchedBridge.getPropertyAsFunction(
*runtime_, "callFunctionReturnResultAndFlushedQueue");
});
}
@@ -129,7 +129,6 @@ class JSIExecutor : public JSExecutor {
folly::Optional<jsi::Function> callFunctionReturnFlushedQueue_;
folly::Optional<jsi::Function> invokeCallbackAndReturnFlushedQueue_;
folly::Optional<jsi::Function> flushedQueue_;
folly::Optional<jsi::Function> callFunctionReturnResultAndFlushedQueue_;
};
using Logger =