Skip to content

Commit

Permalink
Remove unnecessary assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
smileyborg committed Dec 30, 2013
1 parent 478f876 commit 7a3a658
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Source/UIView+AutoLayout.m
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ - (NSLayoutConstraint *)autoAlignAxisToSuperviewAxis:(ALAxis)axis
{
UIView *superview = self.superview;
NSAssert(superview, @"View's superview must not be nil.\nView: %@", self);
NSAssert(axis != ALAxisBaseline, @"Cannot center view in superview on the baseline axis.");
NSLayoutAttribute attribute = [UIView al_attributeForAxis:axis];
NSLayoutConstraint *constraint = [NSLayoutConstraint constraintWithItem:self attribute:attribute relatedBy:NSLayoutRelationEqual toItem:superview attribute:attribute multiplier:1.0f constant:0.0f];
[superview al_addConstraintUsingGlobalPriority:constraint];
Expand Down

0 comments on commit 7a3a658

Please sign in to comment.