Clean up ahead of PR.

This commit is contained in:
Matthew Chen 2019-02-28 15:49:51 -05:00
parent dc4e174e86
commit 63637af240
3 changed files with 3 additions and 4 deletions

View File

@ -135,7 +135,7 @@ public class ConversationMediaView: UIView {
} else if attachmentStream.isVideo {
configureForVideo(attachmentStream: attachmentStream)
} else {
// owsFailDebug("Attachment has unexpected type.")
owsFailDebug("Attachment has unexpected type.")
configure(forError: .invalid)
}
}

View File

@ -229,8 +229,8 @@ class AttachmentCaptionViewController: OWSViewController {
let contentSize = textView.sizeThatFits(CGSize(width: textView.width(), height: CGFloat.greatestFiniteMagnitude))
// `textView.contentSize` isn't accurate when restoring a multiline draft, so we compute it here.
textView.contentSize = contentSize
// `textView.contentSize` isn't accurate when restoring a multiline draft, so we compute it here.
textView.contentSize = contentSize
let minHeight: CGFloat = textView.font?.lineHeight ?? 0
let maxHeight = minHeight * 4

View File

@ -11,7 +11,6 @@ public protocol ImageEditorBrushViewControllerDelegate: class {
// MARK: -
// A view for editing text item in image editor.
public class ImageEditorBrushViewController: OWSViewController {
private weak var delegate: ImageEditorBrushViewControllerDelegate?