Skip to content

Commit 40b16dc

Browse files
christophpurrermeta-codesync[bot]
authored andcommitted
Remove unused legacy architecture RCTAppSetupUtils methods (#57068)
Summary: Pull Request resolved: #57068 ## Changelog: [iOS][Breaking] Remove unused legacy architecture RCTAppSetupUtils methods Reviewed By: javache Differential Revision: D107420863 fbshipit-source-id: 355e09cdf5ea1c4022589246a80bf6078f4c0235
1 parent 284035b commit 40b16dc

2 files changed

Lines changed: 0 additions & 47 deletions

File tree

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,4 @@ std::unique_ptr<facebook::react::JSExecutorFactory> RCTAppSetupDefaultJsExecutor
3838
RCTTurboModuleManager *turboModuleManager,
3939
const std::shared_ptr<facebook::react::RuntimeScheduler> &runtimeScheduler);
4040

41-
std::unique_ptr<facebook::react::JSExecutorFactory> RCTAppSetupJsExecutorFactoryForOldArch(
42-
RCTBridge *bridge,
43-
const std::shared_ptr<facebook::react::RuntimeScheduler> &runtimeScheduler)
44-
__attribute__((deprecated(
45-
"RCTAppSetupJsExecutorFactoryForOldArch(RCTBridge *, RuntimeScheduler) is deprecated and will be removed when we remove the legacy architecture.")));
46-
;
47-
4841
#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 & 29 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
@@ -121,10 +99,3 @@ void RCTAppSetupPrepareApp(UIApplication *application, BOOL turboModuleEnabled)
12199
{
122100
return nullptr;
123101
}
124-
125-
std::unique_ptr<facebook::react::JSExecutorFactory> RCTAppSetupJsExecutorFactoryForOldArch(
126-
RCTBridge *bridge,
127-
const std::shared_ptr<facebook::react::RuntimeScheduler> &runtimeScheduler)
128-
{
129-
return nullptr;
130-
}

0 commit comments

Comments
 (0)