Skip to content

Commit ab8433d

Browse files
Remove unused legacy architecture RCTAppSetupUtils methods (#57068)
Summary: ## Changelog: [iOS][Breaking] Remove unused legacy architecture RCTAppSetupUtils methods Differential Revision: D107420863
1 parent 275ac35 commit ab8433d

2 files changed

Lines changed: 0 additions & 33 deletions

File tree

packages/react-native/Libraries/AppDelegate/RCTAppSetupUtils.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,3 @@ std::unique_ptr<facebook::react::JSExecutorFactory> RCTAppSetupJsExecutorFactory
4646
;
4747

4848
#endif // __cplusplus
49-
50-
RCT_EXTERN_C_BEGIN
51-
52-
void RCTAppSetupPrepareApp(UIApplication *application, BOOL turboModuleEnabled) __attribute__((deprecated(
53-
"RCTAppSetupPrepareApp(UIApplication, BOOL) is deprecated and it's signature will change when we remove the legacy arch")));
54-
UIView *
55-
RCTAppSetupDefaultRootView(RCTBridge *bridge, NSString *moduleName, NSDictionary *initialProperties, BOOL fabricEnabled)
56-
__attribute__((deprecated(
57-
"RCTAppSetupDefaultRootView(RCTBridge *, NSString *, NSDictionary *, BOOL) is deprecated and it's signature will change when we remove the legacy arch")));
58-
59-
RCT_EXTERN_C_END

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

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,6 @@
2828

2929
#import "RCTDependencyProvider.h"
3030

31-
void RCTAppSetupPrepareApp(UIApplication *application, BOOL turboModuleEnabled)
32-
{
33-
RCTEnableTurboModule(YES);
34-
35-
#if DEBUG
36-
// Disable idle timer in dev builds to avoid putting application in background and complicating
37-
// Metro reconnection logic. Users only need this when running the application using our CLI tooling.
38-
application.idleTimerDisabled = YES;
39-
#endif
40-
}
41-
42-
UIView *
43-
RCTAppSetupDefaultRootView(RCTBridge *bridge, NSString *moduleName, NSDictionary *initialProperties, BOOL fabricEnabled)
44-
{
45-
id<RCTSurfaceProtocol> surface = [[RCTFabricSurface alloc] initWithBridge:bridge
46-
moduleName:moduleName
47-
initialProperties:initialProperties];
48-
UIView *rootView = [[RCTSurfaceHostingProxyRootView alloc] initWithSurface:surface];
49-
[surface start];
50-
return rootView;
51-
}
52-
5331
NSArray<NSString *> *RCTAppSetupUnstableModulesRequiringMainQueueSetup(id<RCTDependencyProvider> dependencyProvider)
5432
{
5533
// For oss, insert core main queue setup modules here

0 commit comments

Comments
 (0)