Skip to content

Commit 0b47342

Browse files
committed
No need for explicit ivar and getters, as long as we have the @synthesize in place
1 parent 39db378 commit 0b47342

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

SDWebImage/SDWebImageDownloaderOperation.m

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
#import <ImageIO/ImageIO.h>
1313
#import "SDWebImageManager.h"
1414

15-
@interface SDWebImageDownloaderOperation () <NSURLConnectionDataDelegate> {
16-
BOOL _executing;
17-
BOOL _finished;
18-
}
15+
@interface SDWebImageDownloaderOperation () <NSURLConnectionDataDelegate>
1916

2017
@property (copy, nonatomic) SDWebImageDownloaderProgressBlock progressBlock;
2118
@property (copy, nonatomic) SDWebImageDownloaderCompletedBlock completedBlock;
@@ -181,22 +178,12 @@ - (void)setFinished:(BOOL)finished {
181178
[self didChangeValueForKey:@"isFinished"];
182179
}
183180

184-
- (BOOL)isFinished
185-
{
186-
return _finished;
187-
}
188-
189181
- (void)setExecuting:(BOOL)executing {
190182
[self willChangeValueForKey:@"isExecuting"];
191183
_executing = executing;
192184
[self didChangeValueForKey:@"isExecuting"];
193185
}
194186

195-
- (BOOL)isExecuting
196-
{
197-
return _executing;
198-
}
199-
200187
- (BOOL)isConcurrent {
201188
return YES;
202189
}

0 commit comments

Comments
 (0)