Skip to content

Commit 4342879

Browse files
sherginfacebook-github-bot
authored andcommitted
Deprecated stuff was removed from RCTUIManager
Summary: It was deprecated awhile ago. Reviewed By: javache Differential Revision: D5990505 fbshipit-source-id: 68deefb76fee31a49bfe832e281dc8ee11061cb8
1 parent c0e9936 commit 4342879

File tree

2 files changed

+0
-42
lines changed

2 files changed

+0
-42
lines changed

React/Modules/RCTUIManager.h

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -168,26 +168,6 @@ RCT_EXTERN NSString *const RCTUIManagerWillUpdateViewsDueToContentSizeMultiplier
168168

169169
@end
170170

171-
@interface RCTUIManager (Deprecated)
172-
173-
/**
174-
* This method is deprecated and will be removed in next releases.
175-
* Use `setSize:forView:` or `setIntrinsicContentSize:forView:` instead.
176-
* Only frames with `origin` equals {0, 0} are supported.
177-
*/
178-
- (void)setFrame:(CGRect)frame forView:(UIView *)view
179-
__deprecated_msg("Use `setSize:forView:` or `setIntrinsicContentSize:forView:` instead.");
180-
181-
182-
/**
183-
* This method is deprecated and will be removed in next releases.
184-
* Use `registerRootView:` instead. There is no need to specify `sizeFlexibility` anymore.
185-
*/
186-
- (void)registerRootView:(UIView *)rootView withSizeFlexibility:(RCTRootViewSizeFlexibility)sizeFlexibility
187-
__deprecated_msg("Use `registerRootView:` instead.");
188-
189-
@end
190-
191171
/**
192172
* This category makes the current RCTUIManager instance available via the
193173
* RCTBridge, which is useful for RCTBridgeModules or RCTViewManagers that

React/Modules/RCTUIManager.m

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,28 +1534,6 @@ + (UIView *)JSResponder
15341534

15351535
@end
15361536

1537-
@implementation RCTUIManager (Deprecated)
1538-
1539-
- (void)registerRootView:(UIView *)rootView withSizeFlexibility:(__unused RCTRootViewSizeFlexibility)sizeFlexibility
1540-
{
1541-
RCTLogWarn(@"Calling of `[-RCTUIManager registerRootView:withSizeFlexibility:]` which is deprecated.");
1542-
[self registerRootView:rootView];
1543-
}
1544-
1545-
- (void)setFrame:(CGRect)frame forView:(UIView *)view
1546-
{
1547-
RCTLogWarn(@"Calling of `[-RCTUIManager setFrame:forView:]` which is deprecated.");
1548-
[self setSize:frame.size forView:view];
1549-
}
1550-
1551-
RCT_EXPORT_METHOD(getContentSizeMultiplier:(nonnull RCTResponseSenderBlock)callback)
1552-
{
1553-
RCTLogWarn(@"`getContentSizeMultiplier` is deprecated. Instead, use `PixelRatio.getFontScale()` and listen to the `didUpdateDimensions` event.");
1554-
callback(@[@(_bridge.accessibilityManager.multiplier)]);
1555-
}
1556-
1557-
@end
1558-
15591537
@implementation RCTBridge (RCTUIManager)
15601538

15611539
- (RCTUIManager *)uiManager

0 commit comments

Comments
 (0)