Remove the unused extra copy for `SDAnimatedImage` data initializer

This commit is contained in:
DreamPiggy 2023-02-06 21:11:59 +08:00
parent a052164350
commit fbe8880ab7
1 changed files with 0 additions and 1 deletions

View File

@ -124,7 +124,6 @@ static CGFloat SDImageScaleFromPath(NSString *string) {
if (!data || data.length == 0) {
return nil;
}
data = [data copy]; // avoid mutable data
id<SDAnimatedImageCoder> animatedCoder = nil;
for (id<SDImageCoder>coder in [SDImageCodersManager sharedManager].coders.reverseObjectEnumerator) {
if ([coder conformsToProtocol:@protocol(SDAnimatedImageCoder)]) {