Skip to content

Commit b96801b

Browse files
RSNarafacebook-github-bot
authored andcommitted
Consolidate all c macros
Summary: Let's just use the same flag to compile out everything. I don't think we'll need the utility of separate flags. Reviewed By: fkgozali Differential Revision: D82476933
1 parent 926af3b commit b96801b

File tree

175 files changed

+386
-386
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

175 files changed

+386
-386
lines changed

packages/react-native/Libraries/Image/RCTImageShadowView.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#import <React/RCTShadowView.h>
99

10-
#ifndef RCT_FIT_RM_OLD_COMPONENT
10+
#ifndef RCT_REMOVE_LEGACY_ARCH
1111

1212
__attribute__((deprecated("This API will be removed along with the legacy architecture.")))
1313
@interface RCTImageShadowView : RCTShadowView

packages/react-native/Libraries/Image/RCTImageShadowView.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#import <React/RCTLog.h>
1111

12-
#ifndef RCT_FIT_RM_OLD_COMPONENT
12+
#ifndef RCT_REMOVE_LEGACY_ARCH
1313

1414
@implementation RCTImageShadowView
1515

packages/react-native/Libraries/Image/RCTImageView.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#import <React/RCTView.h>
1010
#import <UIKit/UIKit.h>
1111

12-
#ifndef RCT_FIT_RM_OLD_COMPONENT
12+
#ifndef RCT_REMOVE_LEGACY_ARCH
1313

1414
@class RCTBridge;
1515
@class RCTImageSource;
@@ -29,4 +29,4 @@ __attribute__((deprecated("This API will be removed along with the legacy archit
2929

3030
@end
3131

32-
#endif // RCT_FIT_RM_OLD_COMPONENT
32+
#endif // RCT_REMOVE_LEGACY_ARCH

packages/react-native/Libraries/Image/RCTImageView.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#import <React/RCTUtils.h>
1818
#import <React/UIView+React.h>
1919

20-
#ifndef RCT_FIT_RM_OLD_COMPONENT
20+
#ifndef RCT_REMOVE_LEGACY_ARCH
2121

2222
/**
2323
* Determines whether an image of `currentSize` should be reloaded for display
@@ -505,4 +505,4 @@ - (void)dealloc
505505

506506
@end
507507

508-
#endif // RCT_FIT_RM_OLD_COMPONENT
508+
#endif // RCT_REMOVE_LEGACY_ARCH

packages/react-native/Libraries/Image/RCTImageViewManager.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
#import <React/RCTViewManager.h>
99

10-
#ifndef RCT_FIT_RM_OLD_COMPONENT
10+
#ifndef RCT_REMOVE_LEGACY_ARCH
1111

1212
__attribute__((deprecated("This API will be removed along with the legacy architecture.")))
1313
@interface RCTImageViewManager : RCTViewManager
1414

1515
@end
1616

17-
#endif // RCT_FIT_RM_OLD_COMPONENT
17+
#endif // RCT_REMOVE_LEGACY_ARCH

packages/react-native/Libraries/Image/RCTImageViewManager.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#import <React/RCTImageViewManager.h>
99

10-
#ifndef RCT_FIT_RM_OLD_COMPONENT
10+
#ifndef RCT_REMOVE_LEGACY_ARCH
1111

1212
#import <UIKit/UIKit.h>
1313

@@ -117,4 +117,4 @@ - (UIView *)view
117117

118118
@end
119119

120-
#endif // RCT_FIT_RM_OLD_COMPONENT
120+
#endif // RCT_REMOVE_LEGACY_ARCH

packages/react-native/Libraries/Text/BaseText/RCTBaseTextShadowView.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#import <React/RCTShadowView.h>
99

10-
#ifndef RCT_FIT_RM_OLD_COMPONENT
10+
#ifndef RCT_REMOVE_LEGACY_ARCH
1111

1212
#import "RCTTextAttributes.h"
1313

@@ -32,4 +32,4 @@ __attribute__((deprecated("This API will be removed along with the legacy archit
3232

3333
NS_ASSUME_NONNULL_END
3434

35-
#endif // RCT_FIT_RM_OLD_COMPONENT
35+
#endif // RCT_REMOVE_LEGACY_ARCH

packages/react-native/Libraries/Text/BaseText/RCTBaseTextShadowView.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#import <React/RCTBaseTextShadowView.h>
99

10-
#ifndef RCT_FIT_RM_OLD_COMPONENT
10+
#ifndef RCT_REMOVE_LEGACY_ARCH
1111

1212
#import <React/RCTShadowView+Layout.h>
1313

@@ -159,4 +159,4 @@ - (void)didSetProps:(NSArray<NSString *> *)changedProps
159159

160160
@end
161161

162-
#endif // RCT_FIT_RM_OLD_COMPONENT
162+
#endif // RCT_REMOVE_LEGACY_ARCH

packages/react-native/Libraries/Text/BaseText/RCTBaseTextViewManager.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#import <React/RCTViewManager.h>
99

10-
#ifndef RCT_FIT_RM_OLD_COMPONENT
10+
#ifndef RCT_REMOVE_LEGACY_ARCH
1111

1212
NS_ASSUME_NONNULL_BEGIN
1313

@@ -18,4 +18,4 @@ __attribute__((deprecated("This API will be removed along with the legacy archit
1818

1919
NS_ASSUME_NONNULL_END
2020

21-
#endif // RCT_FIT_RM_OLD_COMPONENT
21+
#endif // RCT_REMOVE_LEGACY_ARCH

packages/react-native/Libraries/Text/BaseText/RCTBaseTextViewManager.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#import <React/RCTBaseTextViewManager.h>
99

10-
#ifndef RCT_FIT_RM_OLD_COMPONENT
10+
#ifndef RCT_REMOVE_LEGACY_ARCH
1111

1212
@implementation RCTBaseTextViewManager
1313

@@ -61,4 +61,4 @@ - (RCTShadowView *)shadowView
6161

6262
@end
6363

64-
#endif // RCT_FIT_RM_OLD_COMPONENT
64+
#endif // RCT_REMOVE_LEGACY_ARCH

0 commit comments

Comments
 (0)