Simplify the code of `animationRepeatCount`, since there are no override logic

This commit is contained in:
DreamPiggy 2019-03-31 11:40:58 +08:00
parent 3c28785d76
commit 505a89c029
1 changed files with 1 additions and 10 deletions

View File

@ -66,7 +66,7 @@ static NSUInteger SDDeviceFreeMemory() {
@implementation SDAnimatedImageView
#if SD_UIKIT
@dynamic animationRepeatCount;
@dynamic animationRepeatCount; // we re-use this property from `UIImageView` super class on iOS.
#endif
#pragma mark - Initializers
@ -238,15 +238,6 @@ static NSUInteger SDDeviceFreeMemory() {
}
}
- (void)setAnimationRepeatCount:(NSInteger)animationRepeatCount
{
#if SD_MAC
_animationRepeatCount = animationRepeatCount;
#else
[super setAnimationRepeatCount:animationRepeatCount];
#endif
}
#if SD_UIKIT
- (void)setRunLoopMode:(NSString *)runLoopMode
{