From 505a89c029b2af5581608a413699aea591a0d496 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Sun, 31 Mar 2019 11:40:58 +0800 Subject: [PATCH] Simplify the code of `animationRepeatCount`, since there are no override logic --- SDWebImage/SDAnimatedImageView.m | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/SDWebImage/SDAnimatedImageView.m b/SDWebImage/SDAnimatedImageView.m index fad2a91d..e898362b 100644 --- a/SDWebImage/SDAnimatedImageView.m +++ b/SDWebImage/SDAnimatedImageView.m @@ -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 {