No longer swizzle dataTaskWithHTTPGetRequest:completionHandler:

This deprecated method has been removed from the NSURLSession header in the iOS 9 SDK, so referencing the selector triggers an undeclared selector warning. We'll follow Apple's lead here and stop supporting the method entirely.
This commit is contained in:
Ryan Olson
2015-09-03 15:13:14 -06:00
parent c250200d03
commit caadcce7f1
@@ -465,7 +465,6 @@ didBecomeDownloadTask:(NSURLSessionDownloadTask *)downloadTask delegate:(id <NSU
// The method signatures here are close enough that we can use the same logic to inject into all of them.
const SEL selectors[] = {
@selector(dataTaskWithHTTPGetRequest:completionHandler:),
@selector(dataTaskWithRequest:completionHandler:),
@selector(dataTaskWithURL:completionHandler:),
@selector(downloadTaskWithRequest:completionHandler:),