Skip to content

Commit

Permalink
Deprecated stuff was removed from RCTShadowView
Browse files Browse the repository at this point in the history
Summary: It was deprecated awhile ago.

Reviewed By: javache

Differential Revision: D5990504

fbshipit-source-id: a218410d17f5f450d573338522b689e035106aba
  • Loading branch information
shergin authored and facebook-github-bot committed Oct 10, 2017
1 parent 4342879 commit 32e5c8e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
10 changes: 0 additions & 10 deletions React/Views/RCTShadowView.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,13 +280,3 @@ typedef void (^RCTApplierBlock)(NSDictionary<NSNumber *, UIView *> *viewRegistry
- (BOOL)viewIsDescendantOf:(RCTShadowView *)ancestor;

@end

@interface RCTShadowView (Deprecated)

@property (nonatomic, assign, readonly) YGNodeRef cssNode
__deprecated_msg("Use `yogaNode` instead.");

- (BOOL)isCSSLeafNode
__deprecated_msg("Use `isYogaLeafNode` instead.");

@end
16 changes: 0 additions & 16 deletions React/Views/RCTShadowView.m
Original file line number Diff line number Diff line change
Expand Up @@ -763,19 +763,3 @@ - (void)didSetProps:(__unused NSArray<NSString *> *)changedProps
}

@end

@implementation RCTShadowView (Deprecated)

- (YGNodeRef)cssNode
{
RCTLogWarn(@"Calling deprecated `[-RCTShadowView cssNode]`.");
return _yogaNode;
}

- (BOOL)isCSSLeafNode
{
RCTLogWarn(@"Calling deprecated `[-RCTShadowView isCSSLeafNode]`.");
return self.isYogaLeafNode;
}

@end

0 comments on commit 32e5c8e

Please sign in to comment.