Skip to content

Commit

Permalink
Removed unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
keshavvishwkarma committed Jan 23, 2016
1 parent 5b42467 commit ea4dc5a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions KVConstraintExtensionsMaster/UIView+KVConstraintExtensions.m
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,16 @@ - (NSLayoutConstraint *)prepareEqualRelationPinRatioConstraintToSuperview:(NSLay
#pragma mark - Prepare constraint of one sibling view to other sibling view and add it into its superview view.

- (NSLayoutConstraint *)prepareConstraintFromSiblingViewAttribute:(NSLayoutAttribute)attribute toAttribute:(NSLayoutAttribute)toAttribute ofView:(UIView *)otherSiblingView relation:(NSLayoutRelation)relation {
NSMutableSet * set = [NSMutableSet setWithArray:@[self.superview,otherSiblingView.superview]];
NSAssert((set.count == 1), @"All the sibling views must belong to same superview");
// NSSet * set = [NSSet setWithArray:@[self.superview,otherSiblingView.superview]];
NSAssert(([NSSet setWithArray:@[self.superview,otherSiblingView.superview]].count == 1), @"All the sibling views must belong to same superview");

return [self.class prepareConastrainForView:self attribute:attribute secondView:otherSiblingView attribute:toAttribute relation:relation multiplier:defualtMultiplier];
}

- (NSLayoutConstraint *)prepareConstraintFromSiblingViewAttribute:(NSLayoutAttribute)attribute toAttribute:(NSLayoutAttribute)toAttribute ofView:(UIView *)otherSiblingView multiplier:(CGFloat)multiplier {
NSAssert(multiplier!=INFINITY, @"ratio of spacing between sybings view must not be INFINITY.");
NSMutableSet * set = [NSMutableSet setWithArray:@[self.superview,otherSiblingView.superview]];
NSAssert((set.count == 1), @"All the sibling views must belong to same superview");
// NSSet * set = [NSSet setWithArray:@[self.superview,otherSiblingView.superview]];
NSAssert(([NSSet setWithArray:@[self.superview,otherSiblingView.superview]].count == 1), @"All the sibling views must belong to same superview");

return [self.class prepareConastrainForView:self attribute:attribute secondView:otherSiblingView attribute:toAttribute relation:defualtRelation multiplier:multiplier];
}
Expand Down

0 comments on commit ea4dc5a

Please sign in to comment.