Skip to content

Commit

Permalink
No need for explicit ivar and getters, as long as we have the @synthe…
Browse files Browse the repository at this point in the history
…size in place
  • Loading branch information
bpoplauschi committed Jul 14, 2014
1 parent 39db378 commit 0b47342
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions SDWebImage/SDWebImageDownloaderOperation.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
#import <ImageIO/ImageIO.h>
#import "SDWebImageManager.h"

@interface SDWebImageDownloaderOperation () <NSURLConnectionDataDelegate> {
BOOL _executing;
BOOL _finished;
}
@interface SDWebImageDownloaderOperation () <NSURLConnectionDataDelegate>

@property (copy, nonatomic) SDWebImageDownloaderProgressBlock progressBlock;
@property (copy, nonatomic) SDWebImageDownloaderCompletedBlock completedBlock;
Expand Down Expand Up @@ -181,22 +178,12 @@ - (void)setFinished:(BOOL)finished {
[self didChangeValueForKey:@"isFinished"];
}

- (BOOL)isFinished
{
return _finished;
}

- (void)setExecuting:(BOOL)executing {
[self willChangeValueForKey:@"isExecuting"];
_executing = executing;
[self didChangeValueForKey:@"isExecuting"];
}

- (BOOL)isExecuting
{
return _executing;
}

- (BOOL)isConcurrent {
return YES;
}
Expand Down

0 comments on commit 0b47342

Please sign in to comment.