Skip to content

Commit

Permalink
Merge pull request Alamofire#159 from parto/master
Browse files Browse the repository at this point in the history
Removing an unused 'priority' parameter
  • Loading branch information
mattt committed Oct 9, 2014
2 parents 7362404 + b548b3d commit 0d53a8c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/Alamofire.swift
Original file line number Diff line number Diff line change
Expand Up @@ -618,14 +618,13 @@ public class Request {
/**
Adds a handler to be called once the request has finished.

:param: priority The dispatch priority / quality of service used to process the response handler. `DISPATCH_QUEUE_PRIORITY_DEFAULT` by default.
:param: queue The queue on which the completion handler is dispatched.
:param: serializer The closure responsible for serializing the request, response, and data.
:param: completionHandler The code to be executed once the request has finished.

:returns: The request.
*/
public func response(priority: Int = DISPATCH_QUEUE_PRIORITY_DEFAULT, queue: dispatch_queue_t? = nil, serializer: Serializer, completionHandler: (NSURLRequest, NSHTTPURLResponse?, AnyObject?, NSError?) -> Void) -> Self {
public func response(queue: dispatch_queue_t? = nil, serializer: Serializer, completionHandler: (NSURLRequest, NSHTTPURLResponse?, AnyObject?, NSError?) -> Void) -> Self {
let delegate = self.delegate
dispatch_async(delegate.queue) { [weak delegate] in
let (responseObject: AnyObject?, serializationError: NSError?) = serializer(self.request, self.response, delegate?.data)
Expand Down

0 comments on commit 0d53a8c

Please sign in to comment.