From a0e0b434ee282b152c954224f7a9ee22bf9b9545 Mon Sep 17 00:00:00 2001 From: Andrey Mishanin Date: Thu, 28 Mar 2019 09:20:26 -0700 Subject: [PATCH] Removed UIView (CKComponentAttachController) Summary: Remove ObjC categories so we can strip dead code Reviewed By: kfirapps Differential Revision: D14665041 fbshipit-source-id: 243dee61a5b7cfd854191bfb5fa3a570b4ac1a4b --- .../SKComponentRootViewDescriptor.mm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKComponentRootViewDescriptor.mm b/iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKComponentRootViewDescriptor.mm index 0ac655c2b..443b325fe 100644 --- a/iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKComponentRootViewDescriptor.mm +++ b/iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutComponentKitSupport/SKComponentRootViewDescriptor.mm @@ -33,11 +33,8 @@ } - (NSUInteger)childCountForNode:(CKComponentRootView *)node { - if ([node respondsToSelector:@selector(ck_attachState)]) { - const auto state = [node ck_attachState]; - return state == nil ? 0 : 1; - } - return 0; + const auto state = CKGetAttachStateForView(node); + return state == nil ? 0 : 1; } - (id)childForNode:(CKComponentRootView *)node atIndex:(NSUInteger)index {