From 3e84d01dfd5a3abc9de20a9f8aa563c8fe2a1418 Mon Sep 17 00:00:00 2001 From: Christoph Purrer Date: Mon, 2 Nov 2026 12:55:47 -0800 Subject: [PATCH] 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 --- .../react-native/React/Base/RCTBridgeProxy.mm | 65 ------------------- 1 file changed, 65 deletions(-) diff --git a/packages/react-native/React/Base/RCTBridgeProxy.mm b/packages/react-native/React/Base/RCTBridgeProxy.mm index 6a79668c462..086d7223916 100644 --- a/packages/react-native/React/Base/RCTBridgeProxy.mm +++ b/packages/react-native/React/Base/RCTBridgeProxy.mm @@ -262,40 +262,11 @@ - (RCTBridge *)batchedBridge return (RCTBridge *)self; } -- (void)setBatchedBridge -{ - [self logError:@"This method is not supported. No-oping." cmd:_cmd]; -} - -- (RCTBridgeModuleListProvider)moduleProvider -{ - [self logWarning:@"This method is not supported. Returning empty block" cmd:_cmd]; - return ^{ - return @[]; - }; -} - - (RCTModuleRegistry *)moduleRegistry { return _moduleRegistry; } -/** - * RCTBridge (RCTCxxBridge) - */ - -- (RCTBridge *)parentBridge -{ - [self logWarning:@"This method is not supported. Returning bridge proxy." cmd:_cmd]; - return (RCTBridge *)self; -} - -- (BOOL)moduleSetupComplete -{ - [self logWarning:@"This method is not supported. Returning YES." cmd:_cmd]; - return YES; -} - - (void)registerAdditionalModuleClasses:(NSArray *)newModules { [self @@ -304,37 +275,6 @@ - (void)registerAdditionalModuleClasses:(NSArray *)newModules cmd:_cmd]; } -- (void)updateModuleWithInstance:(id)instance -{ - [self logError:@"This method is not supported. Nooping." cmd:_cmd]; -} - -- (void)startProfiling -{ - [self logWarning:@"This method is not supported. Nooping." cmd:_cmd]; -} - -- (void)stopProfiling:(void (^)(NSData *))callback -{ - [self logWarning:@"This method is not supported. Nooping." cmd:_cmd]; -} - -- (id)callNativeModule:(NSUInteger)moduleID method:(NSUInteger)methodID params:(NSArray *)params -{ - [self logError:@"This method is not supported. Nooping and returning nil." cmd:_cmd]; - return nil; -} - -- (void)logMessage:(NSString *)message level:(NSString *)level -{ - [self logWarning:@"This method is not supported. Nooping." cmd:_cmd]; -} - -- (void)_immediatelyCallTimer:(NSNumber *)timer -{ - [self logWarning:@"This method is not supported. Nooping." cmd:_cmd]; -} - /** * RCTBridge (RCTUIManager) */ @@ -343,11 +283,6 @@ - (RCTUIManager *)uiManager return (RCTUIManager *)_uiManagerProxy; } -- (RCTBridgeProxy *)object -{ - return self; -} - /** * NSProxy setup */