Skip to content

Commit 19bbaba

Browse files
author
Vitaliy G
committed
removed redundant logs
1 parent df25272 commit 19bbaba

9 files changed

Lines changed: 10 additions & 24 deletions

File tree

QMChatViewController/Categories/UIImage+Cropper.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ - (UIImage *)imageWithCornerRadius:(CGFloat)cornerRadius
1515

1616
UIImage *scaledImage = [self imageByScaleAndCrop:targetSize];
1717

18-
UIGraphicsBeginImageContextWithOptions(scaledImage.size, NO, self.scale);
18+
float scaleFactor = [[UIScreen mainScreen] scale];
19+
UIGraphicsBeginImageContextWithOptions(scaledImage.size, NO, scaleFactor);
1920

2021
// Build a context that's the same dimensions as the new size
2122
CGContextRef context = UIGraphicsGetCurrentContext();

QMChatViewController/QMChatDataSource/QMChatDataSource.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ - (void)changeDataSourceWithMessages:(NSArray*)messages forUpdateType:(QMDataSou
127127
[messagesArray addObject:message];
128128
}
129129

130-
QBChatMessage * dividerMessage = [self handleMessage:message forUpdateType:updateType];
130+
QBChatMessage *dividerMessage = [self handleMessage:message forUpdateType:updateType];
131131

132132
if (dividerMessage) {
133133
[messagesArray addObject:dividerMessage];

QMChatViewController/Utils/QMImageLoader/QMImageLoader.m

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ - (void)safelyRemoveOperationFromRunning:(nullable QMWebImageCombinedOperation *
471471
}
472472
}];
473473
operation.cancelBlock = ^{
474-
// NSLog(@"_QMI URL = %@", url);
474+
475475
[self.imageDownloader cancel:subOperation];
476476
__strong __typeof(weakOperation) strongOperation = weakOperation;
477477
[self safelyRemoveOperationFromRunning:strongOperation];
@@ -660,7 +660,4 @@ - (void)cancel {
660660
}
661661
}
662662

663-
- (void)dealloc {
664-
// NSLog(@"dealloc combined Operation");
665-
}
666663
@end

QMChatViewController/Views/Cells/QMChatMediaAttachmentCell/QMBaseChatMediaAttachmentCell/QMBaseMediaCell.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,8 @@ - (void)setViewState:(QMMediaViewState)viewState {
249249
}
250250
251251
- (void)updateViewWithState:(QMMediaViewState)viewState {
252-
253-
NSLog(@"view state = %ld", (long)viewState);
252+
254253
if (viewState == QMMediaViewStateLoading) {
255-
NSLog(@"Cancellable :%@", self.cancellable ? @"YES": @"NO");
256254
self.mediaPlayButton.hidden = !self.cancellable;
257255
[self.circularProgress startSpinProgressBackgroundLayer];
258256
}

QMChatViewController/Views/Cells/QMChatMediaAttachmentCell/QMVideoIncomingCell/QMVideoIncomingCell.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ - (UIImage *)imageForButtonWithState:(QMMediaViewState)viewState {
4646
NSString *imageName = nil;
4747

4848
switch (viewState) {
49+
4950
case QMMediaViewStateNotReady: imageName = @"ic_download-video"; break;
5051
case QMMediaViewStateReady: imageName = @"ic_play-video"; break;
5152
case QMMediaViewStateLoading: imageName = @"ic_cancel-video"; break;

QMChatViewController/Views/Cells/QMLinkPreviewCell/QMChatBaseLinkPreviewCell.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
//
22
// QMChatBaseLinkPreviewCell.h
3-
// Pods
43
//
5-
// Created by Vitaliy Gurkovsky on 3/31/17.
64
//
5+
// Created by Vitaliy Gurkovsky on 3/31/17.
76
//
87

8+
99
#import "QMChatCell.h"
1010
#import "QMImageView.h"
1111
#import "QMLinkPreviewDelegate.h"

QMChatViewController/Views/Cells/QMLinkPreviewCell/QMChatBaseLinkPreviewCell.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ @interface QMChatBaseLinkPreviewCell() <QMImageViewDelegate>
1717

1818
@implementation QMChatBaseLinkPreviewCell
1919

20-
- (void)awakeFromNib {
20+
- (void)awakeFromNib {
2121

2222
[super awakeFromNib];
2323
}

QMChatViewController/Views/CustomUI/QMAudioRecordButton/QMAudioRecordButton.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)__unused gestureRecognizer
200200

201201
- (BOOL)continueTrackingWithTouch:(UITouch *)touch withEvent:(UIEvent *)event
202202
{
203-
NSLog(@"continueTrackingWithTouch ");
204203
if ([super continueTrackingWithTouch:touch withEvent:event])
205204
{
206205
_lastVelocity = [_panRecognizer velocityInView:self].x;
@@ -339,8 +338,7 @@ - (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event {
339338
CGFloat margin = 100.0;
340339
CGRect hitFrame = CGRectInset(self.bounds, -margin, -margin);
341340
BOOL contains = CGRectContainsPoint(hitFrame, point);
342-
NSLog(@"contains = %@", contains ? @"YES" : @"NO");
343-
341+
344342
if (contains && !self.isHighlighted && event.type == UIEventTypeTouches)
345343
{
346344
self.highlighted = YES;

QMChatViewController/Views/CustomUI/QMImageView/QMImageView.m

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,6 @@ - (void)setImageWithURL:(NSURL *)url
211211
return;
212212
}
213213

214-
//f NSLog(@"_QMI OLD URL = %@ newURL = %@", _url, url);
215-
216214
_url = url;
217215

218216
[self sd_cancelCurrentAnimationImagesLoad];
@@ -260,9 +258,6 @@ - (void)setImageWithURL:(NSURL *)url
260258
[weakSelf setNeedsLayout];
261259
}
262260
}
263-
else {
264-
NSLog(@"downloadImageWithURL:%@ error: %@",imageURL, error.localizedDescription);
265-
}
266261

267262
if (completedBlock) {
268263
completedBlock(image, error, cacheType, imageURL);
@@ -296,7 +291,6 @@ - (void)setImageWithURL:(NSURL *)url
296291

297292
BOOL urlIsValid = url &&url.scheme && url.host;
298293

299-
// NSLog(@"_QMI OLD URL = %@ newURL = %@", _url, url);
300294
_url = url;
301295

302296
[self sd_cancelCurrentAnimationImagesLoad];
@@ -326,9 +320,6 @@ - (void)setImageWithURL:(NSURL *)url
326320
[weakSelf setNeedsLayout];
327321
}
328322
}
329-
else {
330-
NSLog(@"downloadImageWithURL:%@ error: %@",imageURL, error.localizedDescription);
331-
}
332323

333324
if (completedBlock) {
334325
completedBlock(image, error, cacheType, imageURL);

0 commit comments

Comments
 (0)