From 4342879c92b91d7bdbe6d52bddce7b45dd7f8f78 Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Mon, 9 Oct 2017 17:13:13 -0700 Subject: [PATCH] Deprecated stuff was removed from RCTUIManager Summary: It was deprecated awhile ago. Reviewed By: javache Differential Revision: D5990505 fbshipit-source-id: 68deefb76fee31a49bfe832e281dc8ee11061cb8 --- React/Modules/RCTUIManager.h | 20 -------------------- React/Modules/RCTUIManager.m | 22 ---------------------- 2 files changed, 42 deletions(-) diff --git a/React/Modules/RCTUIManager.h b/React/Modules/RCTUIManager.h index 6fde6ae3129ed7..237a109238adaf 100644 --- a/React/Modules/RCTUIManager.h +++ b/React/Modules/RCTUIManager.h @@ -168,26 +168,6 @@ RCT_EXTERN NSString *const RCTUIManagerWillUpdateViewsDueToContentSizeMultiplier @end -@interface RCTUIManager (Deprecated) - -/** - * This method is deprecated and will be removed in next releases. - * Use `setSize:forView:` or `setIntrinsicContentSize:forView:` instead. - * Only frames with `origin` equals {0, 0} are supported. - */ -- (void)setFrame:(CGRect)frame forView:(UIView *)view -__deprecated_msg("Use `setSize:forView:` or `setIntrinsicContentSize:forView:` instead."); - - -/** - * This method is deprecated and will be removed in next releases. - * Use `registerRootView:` instead. There is no need to specify `sizeFlexibility` anymore. - */ -- (void)registerRootView:(UIView *)rootView withSizeFlexibility:(RCTRootViewSizeFlexibility)sizeFlexibility -__deprecated_msg("Use `registerRootView:` instead."); - -@end - /** * This category makes the current RCTUIManager instance available via the * RCTBridge, which is useful for RCTBridgeModules or RCTViewManagers that diff --git a/React/Modules/RCTUIManager.m b/React/Modules/RCTUIManager.m index 510ca398d98b19..d4aac003248e4f 100644 --- a/React/Modules/RCTUIManager.m +++ b/React/Modules/RCTUIManager.m @@ -1534,28 +1534,6 @@ + (UIView *)JSResponder @end -@implementation RCTUIManager (Deprecated) - -- (void)registerRootView:(UIView *)rootView withSizeFlexibility:(__unused RCTRootViewSizeFlexibility)sizeFlexibility -{ - RCTLogWarn(@"Calling of `[-RCTUIManager registerRootView:withSizeFlexibility:]` which is deprecated."); - [self registerRootView:rootView]; -} - -- (void)setFrame:(CGRect)frame forView:(UIView *)view -{ - RCTLogWarn(@"Calling of `[-RCTUIManager setFrame:forView:]` which is deprecated."); - [self setSize:frame.size forView:view]; -} - -RCT_EXPORT_METHOD(getContentSizeMultiplier:(nonnull RCTResponseSenderBlock)callback) -{ - RCTLogWarn(@"`getContentSizeMultiplier` is deprecated. Instead, use `PixelRatio.getFontScale()` and listen to the `didUpdateDimensions` event."); - callback(@[@(_bridge.accessibilityManager.multiplier)]); -} - -@end - @implementation RCTBridge (RCTUIManager) - (RCTUIManager *)uiManager