File tree Expand file tree Collapse file tree 3 files changed +6
-32
lines changed
packages/react-native/React Expand file tree Collapse file tree 3 files changed +6
-32
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,6 @@ void RCTSetTurboModuleInteropBridgeProxyLogLevel(RCTBridgeProxyLoggingLevel logL
82
82
BOOL RCTTurboModuleInteropForAllTurboModulesEnabled (void );
83
83
void RCTEnableTurboModuleInteropForAllTurboModules (BOOL enabled);
84
84
85
- BOOL RCTBridgeModuleBatchDidCompleteDisabled (void );
86
- void RCTDisableBridgeModuleBatchDidComplete (BOOL disabled);
87
-
88
85
typedef enum {
89
86
kRCTGlobalScope ,
90
87
kRCTGlobalScopeUsingRetainJSCallback ,
Original file line number Diff line number Diff line change @@ -254,17 +254,6 @@ void RCTEnableTurboModuleSyncVoidMethods(BOOL enabled)
254
254
gTurboModuleEnableSyncVoidMethods = enabled;
255
255
}
256
256
257
- static BOOL gBridgeModuleDisableBatchDidComplete = NO ;
258
- BOOL RCTBridgeModuleBatchDidCompleteDisabled (void )
259
- {
260
- return gBridgeModuleDisableBatchDidComplete ;
261
- }
262
-
263
- void RCTDisableBridgeModuleBatchDidComplete (BOOL disabled)
264
- {
265
- gBridgeModuleDisableBatchDidComplete = disabled;
266
- }
267
-
268
257
BOOL kDispatchAccessibilityManagerInitOntoMain = NO ;
269
258
BOOL RCTUIManagerDispatchAccessibilityManagerInitOntoMain (void )
270
259
{
Original file line number Diff line number Diff line change @@ -1458,27 +1458,15 @@ - (void)registerSegmentWithId:(NSUInteger)segmentId path:(NSString *)path
1458
1458
1459
1459
- (void )batchDidComplete
1460
1460
{
1461
- if ( RCTBridgeModuleBatchDidCompleteDisabled ()) {
1462
- id uiManager = [ self moduleForName: @" UIManager " ];
1463
- if ([uiManager respondsToSelector: @selector ( batchDidComplete )] &&
1464
- [uiManager respondsToSelector: @selector ( methodQueue )] ) {
1461
+ // TODO #12592471: batchDidComplete is only used by RCTUIManager,
1462
+ // can we eliminate this special case?
1463
+ for (RCTModuleData *moduleData in _moduleDataByID) {
1464
+ if (moduleData. implementsBatchDidComplete ) {
1465
1465
[self
1466
1466
dispatchBlock: ^{
1467
- [uiManager batchDidComplete ];
1467
+ [moduleData.instance batchDidComplete ];
1468
1468
}
1469
- queue: [uiManager methodQueue ]];
1470
- }
1471
- } else {
1472
- // TODO #12592471: batchDidComplete is only used by RCTUIManager,
1473
- // can we eliminate this special case?
1474
- for (RCTModuleData *moduleData in _moduleDataByID) {
1475
- if (moduleData.implementsBatchDidComplete ) {
1476
- [self
1477
- dispatchBlock: ^{
1478
- [moduleData.instance batchDidComplete ];
1479
- }
1480
- queue: moduleData.methodQueue];
1481
- }
1469
+ queue: moduleData.methodQueue];
1482
1470
}
1483
1471
}
1484
1472
}
You can’t perform that action at this time.
0 commit comments