mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-05-11 23:12:42 +08:00
[API] Remove old deprecated methods. (#2312)
* Remove old deprecated methods. Will restore ones that were removed recently based on PR. * Update example to use non-deprecated method. * Don't remove locking / unlocking, insets or willDisplayNode deprecated methods yet.
This commit is contained in:
committed by
Adlai Holler
parent
a25f4a7b85
commit
5205ef6840
@@ -28,22 +28,19 @@
|
||||
ASBasicImageDownloader *downloader = [ASBasicImageDownloader sharedImageDownloader];
|
||||
NSURL *URL = [NSURL URLWithString:@"http://wrongPath/wrongResource.png"];
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
[downloader downloadImageWithURL:URL
|
||||
callbackQueue:dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)
|
||||
downloadProgressBlock:nil
|
||||
completion:^(CGImageRef image, NSError *error) {
|
||||
downloadProgress:nil
|
||||
completion:^(id<ASImageContainerProtocol> _Nullable image, NSError * _Nullable error, id _Nullable downloadIdentifier) {
|
||||
[firstExpectation fulfill];
|
||||
}];
|
||||
|
||||
|
||||
[downloader downloadImageWithURL:URL
|
||||
callbackQueue:dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)
|
||||
downloadProgressBlock:nil
|
||||
completion:^(CGImageRef image, NSError *error) {
|
||||
downloadProgress:nil
|
||||
completion:^(id<ASImageContainerProtocol> _Nullable image, NSError * _Nullable error, id _Nullable downloadIdentifier) {
|
||||
[secondExpectation fulfill];
|
||||
}];
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
[self waitForExpectationsWithTimeout:30 handler:nil];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user