diff --git a/React/Modules/RCTUIManager.m b/React/Modules/RCTUIManager.m index a68a0df17..3941c45c8 100644 --- a/React/Modules/RCTUIManager.m +++ b/React/Modules/RCTUIManager.m @@ -976,10 +976,6 @@ RCT_EXPORT_METHOD(createView:(nonnull NSNumber *)reactTag if (view) { [componentData setProps:props forView:view]; uiManager->_viewRegistry[reactTag] = view; - -#if RCT_DEV - [view _DEBUG_setReactShadowView:shadowView]; -#endif } }); diff --git a/React/Views/UIView+React.h b/React/Views/UIView+React.h index 068f41138..1c90f16db 100644 --- a/React/Views/UIView+React.h +++ b/React/Views/UIView+React.h @@ -109,14 +109,4 @@ */ @property (nonatomic, readonly) UIView *reactAccessibilityElement; -#if RCT_DEV - -/** - Tools for debugging - */ - -@property (nonatomic, strong, setter=_DEBUG_setReactShadowView:) RCTShadowView *_DEBUG_reactShadowView; - -#endif - @end diff --git a/React/Views/UIView+React.m b/React/Views/UIView+React.m index 306af7ba6..a764eb46a 100644 --- a/React/Views/UIView+React.m +++ b/React/Views/UIView+React.m @@ -37,21 +37,6 @@ objc_setAssociatedObject(self, @selector(nativeID), nativeID, OBJC_ASSOCIATION_RETAIN_NONATOMIC); } -#if RCT_DEV - -- (RCTShadowView *)_DEBUG_reactShadowView -{ - return objc_getAssociatedObject(self, _cmd); -} - -- (void)_DEBUG_setReactShadowView:(RCTShadowView *)shadowView -{ - // Use assign to avoid keeping the shadowView alive it if no longer exists - objc_setAssociatedObject(self, @selector(_DEBUG_reactShadowView), shadowView, OBJC_ASSOCIATION_ASSIGN); -} - -#endif - - (BOOL)isReactRootView { return RCTIsReactRootView(self.reactTag);