@@ -124,7 +124,7 @@ - (void)_loadNextImage;
124124 @param imageIdentifier The identifier for the image to be fetched. May not be nil.
125125 @param imageURL The URL of the image to fetch. May not be nil.
126126 @param completionBlock The block to be performed when the image has been fetched from the cache, if possible. May not be nil.
127- @param image The image fetched from the cache, if any.
127+ @param image The image fetched from the cache, if any.
128128 @discussion This method queries both the session's in-memory and on-disk caches (with preference for the in-memory cache).
129129 */
130130- (void )_fetchImageWithIdentifierFromCache : (id )imageIdentifier URL : (NSURL *)imageURL completion : (void (^)(UIImage *image))completionBlock ;
@@ -135,8 +135,8 @@ - (void)_fetchImageWithIdentifierFromCache:(id)imageIdentifier URL:(NSURL *)imag
135135 @param imageIdentifier The identifier for the image to be loaded. May not be nil.
136136 @param assetURL The assets-library URL (e.g., "assets-library://identifier") of the image to load, from ALAsset. May not be nil.
137137 @param completionBlock The block to be performed when the image has been loaded, if possible. May not be nil.
138- @param image The image that was loaded. May be nil if no image could be downloaded.
139- @param error An error describing why the load failed, if it failed; nil otherwise.
138+ @param image The image that was loaded. May be nil if no image could be downloaded.
139+ @param error An error describing why the load failed, if it failed; nil otherwise.
140140 */
141141- (void )_loadALAssetWithIdentifier : (id )imageIdentifier URL : (NSURL *)assetURL completion : (void (^)(UIImage *image, NSError *error))completionBlock ;
142142
@@ -145,8 +145,8 @@ - (void)_loadALAssetWithIdentifier:(id)imageIdentifier URL:(NSURL *)assetURL com
145145 @param imageIdentifier The identifier for the image to be loaded. May not be nil.
146146 @param request The photos image request to load. May not be nil.
147147 @param completionBlock The block to be performed when the image has been loaded, if possible. May not be nil.
148- @param image The image that was loaded. May be nil if no image could be downloaded.
149- @param error An error describing why the load failed, if it failed; nil otherwise.
148+ @param image The image that was loaded. May be nil if no image could be downloaded.
149+ @param error An error describing why the load failed, if it failed; nil otherwise.
150150 */
151151- (void )_loadPHAssetWithRequest : (ASPhotosFrameworkImageRequest *)request identifier : (id )imageIdentifier completion : (void (^)(UIImage *image, NSError *error))completionBlock ;
152152#endif
@@ -155,8 +155,8 @@ - (void)_loadPHAssetWithRequest:(ASPhotosFrameworkImageRequest *)request identif
155155 @param imageIdentifier The identifier for the image to be downloaded. May not be nil.
156156 @param imageURL The URL of the image to downloaded. May not be nil.
157157 @param completionBlock The block to be performed when the image has been downloaded, if possible. May not be nil.
158- @param image The image that was downloaded. May be nil if no image could be downloaded.
159- @param error An error describing why the download failed, if it failed; nil otherwise.
158+ @param image The image that was downloaded. May be nil if no image could be downloaded.
159+ @param error An error describing why the download failed, if it failed; nil otherwise.
160160 */
161161- (void )_downloadImageWithIdentifier : (id )imageIdentifier URL : (NSURL *)imageURL completion : (void (^)(UIImage *image, NSError *error))completionBlock ;
162162
@@ -737,10 +737,13 @@ - (void)_fetchImageWithIdentifierFromCache:(id)imageIdentifier URL:(NSURL *)imag
737737 completionBlock (imageFromCache);
738738 }];
739739 } else {
740+ #pragma clang diagnostic push
741+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
740742 [_cache fetchCachedImageWithURL: imageURL callbackQueue: dispatch_get_main_queue () completion: ^(CGImageRef coreGraphicsImageFromCache) {
741743 UIImage *imageFromCache = (coreGraphicsImageFromCache ? [UIImage imageWithCGImage: coreGraphicsImageFromCache] : nil );
742744 completionBlock (imageFromCache);
743745 }];
746+ #pragma clang diagnostic pop
744747 }
745748 }
746749 // If we don't have a cache, just fail immediately.
@@ -795,6 +798,8 @@ - (void)_downloadImageWithIdentifier:(id)imageIdentifier URL:(NSURL *)imageURL c
795798 [strongSelf->_delegate multiplexImageNode: weakSelf didFinishDownloadingImageWithIdentifier: imageIdentifier error: error];
796799 }]];
797800 } else {
801+ #pragma clang diagnostic push
802+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
798803 [self _setDownloadIdentifier: [_downloader downloadImageWithURL: imageURL
799804 callbackQueue: dispatch_get_main_queue ()
800805 downloadProgressBlock: downloadProgressBlock
@@ -811,6 +816,7 @@ - (void)_downloadImageWithIdentifier:(id)imageIdentifier URL:(NSURL *)imageURL c
811816 if (strongSelf->_delegateFlags .downloadFinish )
812817 [strongSelf->_delegate multiplexImageNode: weakSelf didFinishDownloadingImageWithIdentifier: imageIdentifier error: error];
813818 }]];
819+ #pragma clang diagnostic pop
814820 }
815821 });
816822}
0 commit comments