Skip to content

Commit ad9936f

Browse files
christophpurrermeta-codesync[bot]
authored andcommitted
Remove depracted legacy architecture @protocol APIs (#57069)
Summary: Pull Request resolved: #57069 ## Changelog: [IOS][Breaking] Remove depracted legacy architecture protocol APIs Reviewed By: andrewdacenko Differential Revision: D107422407 fbshipit-source-id: 442f232981a4c6504c7c64e88ba1f8e99d1c5a5b
1 parent 40b16dc commit ad9936f

17 files changed

Lines changed: 1 addition & 154 deletions

File tree

packages/react-native/React/Base/RCTRootView.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#import "RCTLog.h"
1919
#import "RCTPerformanceLogger.h"
2020
#import "RCTProfile.h"
21-
#import "RCTRootShadowView.h"
2221
#import "RCTTouchHandler.h"
2322
#import "RCTUIManager.h"
2423
#import "RCTUIManagerUtils.h"

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ NS_ASSUME_NONNULL_BEGIN
1616

1717
// Whether the New Architecture is enabled or not
1818
RCT_EXTERN BOOL RCTIsNewArchEnabled(void);
19-
RCT_EXTERN void RCTSetNewArchEnabled(BOOL enabled) __attribute__((deprecated(
20-
"This function is now no-op. You need to modify the Info.plist adding a RCTNewArchEnabled bool property to control whether the New Arch is enabled or not")));
21-
;
2219

2320
// Whether React native should output logs for modules and components used
2421
// through the interop layers

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@ BOOL RCTIsNewArchEnabled(void)
4646
{
4747
return YES;
4848
}
49-
void RCTSetNewArchEnabled(BOOL enabled)
50-
{
51-
// This function is now deprecated and will be removed in the future.
52-
// This function is now no-op. You need to modify the Info.plist adding a `RCTNewArchEnabled` bool property to control
53-
// whether the New Arch is enabled or not.
54-
}
5549

5650
BOOL RCTAreLegacyLogsEnabled(void)
5751
{

packages/react-native/React/Modules/RCTUIManager.mm

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@
2525
#import "RCTModuleData.h"
2626
#import "RCTModuleMethod.h"
2727
#import "RCTProfile.h"
28-
#import "RCTRootShadowView.h"
2928
#import "RCTScrollableProtocol.h"
30-
#import "RCTShadowView+Internal.h"
3129
#import "RCTShadowView.h"
3230
#import "RCTSurfaceRootShadowView.h"
3331
#import "RCTSurfaceRootView.h"

packages/react-native/React/Views/RCTRootShadowView.h

Lines changed: 0 additions & 35 deletions
This file was deleted.

packages/react-native/React/Views/RCTRootShadowView.m

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/react-native/React/Views/RCTShadowView+Internal.h

Lines changed: 0 additions & 18 deletions
This file was deleted.

packages/react-native/React/Views/RCTShadowView+Internal.m

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/react-native/React/Views/RCTShadowView.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#import <React/RCTRootView.h>
1515
#import <yoga/Yoga.h>
1616

17-
@class RCTRootShadowView;
1817
@class RCTSparseArray;
1918

2019
typedef void (^RCTApplierBlock)(NSDictionary<NSNumber *, UIView *> *viewRegistry);
@@ -46,7 +45,6 @@ typedef void (^RCTApplierBlock)(NSDictionary<NSNumber *, UIView *> *viewRegistry
4645
- (void)insertReactSubview:(RCTShadowView *)subview atIndex:(NSInteger)atIndex NS_REQUIRES_SUPER;
4746
- (void)removeReactSubview:(RCTShadowView *)subview NS_REQUIRES_SUPER;
4847

49-
@property (nonatomic, weak, readonly) RCTRootShadowView *rootView;
5048
@property (nonatomic, weak, readonly) RCTShadowView *superview;
5149
@property (nonatomic, assign, readonly) YGNodeRef yogaNode;
5250
@property (nonatomic, copy) NSString *viewName;

packages/react-native/React/Views/ScrollView/RCTScrollableProtocol.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,3 @@
4242
@property (nonatomic, weak) UIScrollView *scrollView;
4343

4444
@end
45-
46-
__attribute__((deprecated("Use RCTCustomRefreshControlProtocol instead")))
47-
@protocol RCTCustomRefreshContolProtocol<RCTCustomRefreshControlProtocol>
48-
@end

0 commit comments

Comments
 (0)