CR: remove unnecessary code, comments

// FREEBIE
pull/1/head
Michael Kirk 7 years ago
parent 412fe2735e
commit 8d2934d86e

@ -76,15 +76,6 @@ static const CGFloat ConversationInputToolbarBorderViewHeight = 0.5;
return newSize;
}
- (void)setToolbarHeight:(CGFloat)toolbarHeight
{
if (toolbarHeight == _toolbarHeight) {
return;
}
_toolbarHeight = toolbarHeight;
}
- (void)createContents
{
self.layoutMargins = UIEdgeInsetsZero;

@ -3667,11 +3667,6 @@ typedef NS_ENUM(NSInteger, MessagesRangeSizeMode) {
}
CGRect keyboardEndFrame = [keyboardEndFrameValue CGRectValue];
// DDLogVerbose(@"%@ keyboard change. Old Frame: %@, New Frame: %@",
// self.logTag,
// NSStringFromCGRect(keyboardBeginFrame),
// NSStringFromCGRect(keyboardEndFrame));
UIEdgeInsets oldInsets = self.collectionView.contentInset;
UIEdgeInsets newInsets = oldInsets;

@ -1,5 +1,5 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
//
#import "ConversationViewLayout.h"
@ -69,10 +69,6 @@ NS_ASSUME_NONNULL_BEGIN
return;
}
if (self.collectionView.bounds.size.width <= 0.f || self.collectionView.bounds.size.height <= 0.f) {
[self.collectionView layoutIfNeeded];
}
if (self.collectionView.bounds.size.width <= 0.f || self.collectionView.bounds.size.height <= 0.f) {
OWSFail(
@"%@ Collection view has invalid size: %@", self.logTag, NSStringFromCGRect(self.collectionView.bounds));

@ -1,5 +1,5 @@
//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
//
#import "OWSOrphanedDataCleaner.h"
@ -32,7 +32,7 @@ NS_ASSUME_NONNULL_BEGIN
+ (void)auditAndCleanupAsync:(void (^_Nullable)())completion
{
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
// [OWSOrphanedDataCleaner auditAndCleanup:YES completion:completion];
[OWSOrphanedDataCleaner auditAndCleanup:YES completion:completion];
});
}

Loading…
Cancel
Save