Skip to content

Commit 3b29793

Browse files
Remove unused RCTTurboModuleInteropBridgeProxy code (#57002)
Summary: Changelog: [INTERNAL] Remove unused RCTTurboModuleInteropBridgeProxy code Differential Revision: D106830105
1 parent 6720760 commit 3b29793

3 files changed

Lines changed: 0 additions & 16 deletions

File tree

packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.mm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ - (void)initializeReactHostWithLaunchOptions:(NSDictionary *)launchOptions
153153
{
154154
// Enable TurboModule interop by default in Bridgeless mode
155155
RCTEnableTurboModuleInterop(YES);
156-
RCTEnableTurboModuleInteropBridgeProxy(YES);
157156

158157
[self createReactHostIfNeeded:launchOptions
159158
bundleConfiguration:bundleConfiguration

packages/react-native/React/Base/RCTBridge.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ void RCTEnableTurboModule(BOOL enabled);
5454
BOOL RCTTurboModuleInteropEnabled(void);
5555
void RCTEnableTurboModuleInterop(BOOL enabled);
5656

57-
// Turn on TurboModule interop's Bridge proxy
58-
BOOL RCTTurboModuleInteropBridgeProxyEnabled(void);
59-
void RCTEnableTurboModuleInteropBridgeProxy(BOOL enabled);
60-
6157
// Turn on the fabric interop layer
6258
BOOL RCTFabricInteropLayerEnabled(void);
6359
void RCTEnableFabricInteropLayer(BOOL enabled);

packages/react-native/React/Base/RCTBridge.mm

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -209,17 +209,6 @@ void RCTEnableTurboModuleInterop(BOOL enabled)
209209
turboModuleInteropEnabled = enabled;
210210
}
211211

212-
static BOOL turboModuleInteropBridgeProxyEnabled = NO;
213-
BOOL RCTTurboModuleInteropBridgeProxyEnabled(void)
214-
{
215-
return turboModuleInteropBridgeProxyEnabled;
216-
}
217-
218-
void RCTEnableTurboModuleInteropBridgeProxy(BOOL enabled)
219-
{
220-
turboModuleInteropBridgeProxyEnabled = enabled;
221-
}
222-
223212
static BOOL fabricInteropLayerEnabled = YES;
224213
BOOL RCTFabricInteropLayerEnabled()
225214
{

0 commit comments

Comments
 (0)