Skip to content

Commit c768fa1

Browse files
Delete orphan RCTBridgeProxy shims (#59444)
Summary: Remove orphan `RCTBridgeProxy` shims whose declarations are gone (`parentBridge`, `moduleProvider`, `moduleSetupComplete`, `updateModuleWithInstance:`, profiling, `callNativeModule`, `logMessage`, `_immediatelyCallTimer:`, `object`). Keep `batchedBridge`, `bridgeDescription`, `runtime` (Expo/Reanimated call them) and `jsCallInvoker` (Skia fallback read; macOS fork keeps its reader). Changelog: [Internal] Reviewed By: andrewdacenko Differential Revision: D127294703
1 parent f9855ad commit c768fa1

1 file changed

Lines changed: 0 additions & 65 deletions

File tree

‎packages/react-native/React/Base/RCTBridgeProxy.mm‎

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -262,40 +262,11 @@ - (RCTBridge *)batchedBridge
262262
return (RCTBridge *)self;
263263
}
264264

265-
- (void)setBatchedBridge
266-
{
267-
[self logError:@"This method is not supported. No-oping." cmd:_cmd];
268-
}
269-
270-
- (RCTBridgeModuleListProvider)moduleProvider
271-
{
272-
[self logWarning:@"This method is not supported. Returning empty block" cmd:_cmd];
273-
return ^{
274-
return @[];
275-
};
276-
}
277-
278265
- (RCTModuleRegistry *)moduleRegistry
279266
{
280267
return _moduleRegistry;
281268
}
282269

283-
/**
284-
* RCTBridge (RCTCxxBridge)
285-
*/
286-
287-
- (RCTBridge *)parentBridge
288-
{
289-
[self logWarning:@"This method is not supported. Returning bridge proxy." cmd:_cmd];
290-
return (RCTBridge *)self;
291-
}
292-
293-
- (BOOL)moduleSetupComplete
294-
{
295-
[self logWarning:@"This method is not supported. Returning YES." cmd:_cmd];
296-
return YES;
297-
}
298-
299270
- (void)registerAdditionalModuleClasses:(NSArray<Class> *)newModules
300271
{
301272
[self
@@ -304,37 +275,6 @@ - (void)registerAdditionalModuleClasses:(NSArray<Class> *)newModules
304275
cmd:_cmd];
305276
}
306277

307-
- (void)updateModuleWithInstance:(id<RCTBridgeModule>)instance
308-
{
309-
[self logError:@"This method is not supported. Nooping." cmd:_cmd];
310-
}
311-
312-
- (void)startProfiling
313-
{
314-
[self logWarning:@"This method is not supported. Nooping." cmd:_cmd];
315-
}
316-
317-
- (void)stopProfiling:(void (^)(NSData *))callback
318-
{
319-
[self logWarning:@"This method is not supported. Nooping." cmd:_cmd];
320-
}
321-
322-
- (id)callNativeModule:(NSUInteger)moduleID method:(NSUInteger)methodID params:(NSArray *)params
323-
{
324-
[self logError:@"This method is not supported. Nooping and returning nil." cmd:_cmd];
325-
return nil;
326-
}
327-
328-
- (void)logMessage:(NSString *)message level:(NSString *)level
329-
{
330-
[self logWarning:@"This method is not supported. Nooping." cmd:_cmd];
331-
}
332-
333-
- (void)_immediatelyCallTimer:(NSNumber *)timer
334-
{
335-
[self logWarning:@"This method is not supported. Nooping." cmd:_cmd];
336-
}
337-
338278
/**
339279
* RCTBridge (RCTUIManager)
340280
*/
@@ -343,11 +283,6 @@ - (RCTUIManager *)uiManager
343283
return (RCTUIManager *)_uiManagerProxy;
344284
}
345285

346-
- (RCTBridgeProxy *)object
347-
{
348-
return self;
349-
}
350-
351286
/**
352287
* NSProxy setup
353288
*/

0 commit comments

Comments
 (0)