From 57c79fd797cc84f9472f77f11ff570fdd0ed0b33 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Mon, 9 Jul 2018 11:08:22 -0400 Subject: [PATCH] Respond to CR. --- .../ConversationView/Cells/OWSCallMessageCell.m | 5 +---- SignalMessaging/categories/UIView+OWS.h | 1 - SignalMessaging/categories/UIView+OWS.m | 8 -------- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/Signal/src/ViewControllers/ConversationView/Cells/OWSCallMessageCell.m b/Signal/src/ViewControllers/ConversationView/Cells/OWSCallMessageCell.m index 398cad59b..be2b5d587 100644 --- a/Signal/src/ViewControllers/ConversationView/Cells/OWSCallMessageCell.m +++ b/Signal/src/ViewControllers/ConversationView/Cells/OWSCallMessageCell.m @@ -160,10 +160,7 @@ NS_ASSUME_NONNULL_BEGIN } CGSize cellSize = [self cellSizeWithTransaction:transaction]; - [self.layoutConstraints addObjectsFromArray:@[ - [self.bubbleView autoSetDimension:ALDimensionWidth toSize:cellSize.width], - [self.bubbleView autoSetDimension:ALDimensionHeight toSize:cellSize.height], - ]]; + [self.layoutConstraints addObjectsFromArray:[self.bubbleView autoSetDimensionsToSize:cellSize]]; self.vStackView.layoutMarginsRelativeArrangement = YES; self.vStackView.layoutMargins = UIEdgeInsetsMake(self.conversationStyle.textInsetTop, diff --git a/SignalMessaging/categories/UIView+OWS.h b/SignalMessaging/categories/UIView+OWS.h index ec19d591d..cd9a9b79f 100644 --- a/SignalMessaging/categories/UIView+OWS.h +++ b/SignalMessaging/categories/UIView+OWS.h @@ -33,7 +33,6 @@ CGFloat ScaleFromIPhone5(CGFloat iPhone5Value); - (NSLayoutConstraint *)autoHCenterInSuperview; - (NSLayoutConstraint *)autoVCenterInSuperview; -- (void)autoPinEdgesToEdgesOfView:(UIView *)view; - (void)autoPinWidthToWidthOfView:(UIView *)view; - (void)autoPinHeightToHeightOfView:(UIView *)view; diff --git a/SignalMessaging/categories/UIView+OWS.m b/SignalMessaging/categories/UIView+OWS.m index f09375bdc..5fa542ce9 100644 --- a/SignalMessaging/categories/UIView+OWS.m +++ b/SignalMessaging/categories/UIView+OWS.m @@ -111,14 +111,6 @@ CGFloat ScaleFromIPhone5(CGFloat iPhone5Value) return [self autoAlignAxis:ALAxisHorizontal toSameAxisOfView:self.superview]; } -- (void)autoPinEdgesToEdgesOfView:(UIView *)view -{ - OWSAssert(view); - - [self autoPinWidthToWidthOfView:view]; - [self autoPinHeightToHeightOfView:view]; -} - - (void)autoPinWidthToWidthOfView:(UIView *)view { OWSAssert(view);