diff --git a/submodules/WebPBinding/Sources/UIImage+WebP.m b/submodules/WebPBinding/Sources/UIImage+WebP.m index f209b7e3b2..c4a07eed72 100644 --- a/submodules/WebPBinding/Sources/UIImage+WebP.m +++ b/submodules/WebPBinding/Sources/UIImage+WebP.m @@ -10,11 +10,6 @@ return nil; } - UIImage *osImage = [[UIImage alloc] initWithData:imgData scale:1.0]; - if (osImage != nil) { - return osImage; - } - int width = 0, height = 0; if (!WebPGetInfo([imgData bytes], [imgData length], &width, &height)) { NSMutableDictionary *errorDetail = [NSMutableDictionary dictionary];