Skip to content

Commit

Permalink
Update ASLayout.mm
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhuy authored Nov 28, 2017
1 parent 2aa56b8 commit 9552195
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions Source/Layout/ASLayout.mm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#import <AsyncDisplayKit/ASLayoutSpecUtilities.h>
#import <AsyncDisplayKit/ASLayoutSpec+Subclasses.h>

#import <AsyncDisplayKit/ASEqualityHelpers.h>
#import <AsyncDisplayKit/ASInternalHelpers.h>
#import <AsyncDisplayKit/ASObjectDescriptionHelpers.h>
#import <AsyncDisplayKit/ASRectTable.h>
Expand Down Expand Up @@ -373,22 +372,6 @@ - (NSString *)_recursiveDescriptionForLayout:(ASLayout *)layout level:(NSUIntege
return description;
}

- (BOOL)isEqual:(id)object
{
if (self == object) {
return YES;
}

if (ASLayout *layout = ASDynamicCast(object, ASLayout)) {
return CGSizeEqualToSize(self.size, layout.size)
&& ((ASPointIsNull(self.position) && ASPointIsNull(layout.position))
|| CGPointEqualToPoint(self.position, layout.position))
&& self.layoutElement == layout.layoutElement
&& ASObjectIsEqual(self.sublayouts, layout.sublayouts);
}
return NO;
}

@end

ASLayout *ASCalculateLayout(id<ASLayoutElement> layoutElement, const ASSizeRange sizeRange, const CGSize parentSize)
Expand Down

0 comments on commit 9552195

Please sign in to comment.