Skip to content

Commit

Permalink
NSURLSession: fix unimplemented method returns
Browse files Browse the repository at this point in the history
  • Loading branch information
triplef committed Jan 16, 2023
1 parent c29fc4e commit 41b08d0
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions Source/NSURLSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -340,21 +340,18 @@ - (NSURLSessionDataTask*) dataTaskWithURL: (NSURL*)url
- (NSURLSessionUploadTask*) uploadTaskWithRequest: (NSURLRequest*)request
fromFile: (NSURL*)fileURL
{
[self notImplemented: _cmd];
return nil;
return [self notImplemented: _cmd];
}

- (NSURLSessionUploadTask*) uploadTaskWithRequest: (NSURLRequest*)request
fromData: (NSData*)bodyData;
{
[self notImplemented: _cmd];
return nil;
return [self notImplemented: _cmd];
}

- (NSURLSessionUploadTask*) uploadTaskWithStreamedRequest: (NSURLRequest*)request
{
[self notImplemented: _cmd];
return nil;
return [self notImplemented: _cmd];
}

- (NSURLSessionDownloadTask*) downloadTaskWithRequest: (NSURLRequest*)request
Expand Down Expand Up @@ -387,8 +384,7 @@ - (NSURLSessionDownloadTask*) downloadTaskWithURL: (NSURL*)url

- (NSURLSessionDownloadTask*) downloadTaskWithResumeData: (NSData*)resumeData
{
[self notImplemented: _cmd];
return nil;
return [self notImplemented: _cmd];
}

- (void) getTasksWithCompletionHandler: (void (^)(GS_GENERIC_CLASS(NSArray, NSURLSessionDataTask*) *dataTasks, GS_GENERIC_CLASS(NSArray, NSURLSessionUploadTask*) *uploadTasks, GS_GENERIC_CLASS(NSArray, NSURLSessionDownloadTask*) *downloadTasks))completionHandler
Expand Down Expand Up @@ -469,16 +465,14 @@ - (NSURLSessionUploadTask*) uploadTaskWithRequest: (NSURLRequest*)request
fromFile: (NSURL*)fileURL
completionHandler: (void (^)(NSData *data, NSURLResponse *response, NSError *error))completionHandler
{
[self notImplemented: _cmd];
return nil;
return [self notImplemented: _cmd];
}

- (NSURLSessionUploadTask*) uploadTaskWithRequest: (NSURLRequest*)request
fromData: (NSData*)bodyData
completionHandler: (void (^)(NSData *data, NSURLResponse *response, NSError *error))completionHandler
{
[self notImplemented: _cmd];
return nil;
return [self notImplemented: _cmd];
}

- (NSURLSessionDownloadTask*) downloadTaskWithRequest: (NSURLRequest*)request
Expand Down Expand Up @@ -516,8 +510,7 @@ - (NSURLSessionDownloadTask*) downloadTaskWithURL: (NSURL*)url
- (NSURLSessionDownloadTask*) downloadTaskWithResumeData: (NSData*)resumeData
completionHandler: (void (^)(NSURL *location, NSURLResponse *response, NSError *error))completionHandler
{
[self notImplemented: _cmd];
return nil;
return [self notImplemented: _cmd];
}

@end
Expand Down

0 comments on commit 41b08d0

Please sign in to comment.