Selaa lähdekoodia

Removed ambiguous response serializer methods that collide with default parameters.

Christian Noon 10 vuotta sitten
vanhempi
commit
af1e24c383
1 muutettua tiedostoa jossa 0 lisäystä ja 22 poistoa
  1. 0 22
      Source/Alamofire.swift

+ 0 - 22
Source/Alamofire.swift

@@ -1365,17 +1365,6 @@ extension Request {
         }
     }
 
-    /**
-        Adds a handler to be called once the request has finished.
-
-        :param: completionHandler A closure to be executed once the request has finished. The closure takes 4 arguments: the URL request, the URL response, if one was received, the string, if one could be created from the URL response and data, and any error produced while creating the string.
-
-        :returns: The request.
-    */
-    public func responseString(completionHandler: (NSURLRequest, NSHTTPURLResponse?, String?, NSError?) -> Void) -> Self {
-        return responseString(completionHandler: completionHandler)
-    }
-
     /**
         Adds a handler to be called once the request has finished.
 
@@ -1452,17 +1441,6 @@ extension Request {
         }
     }
 
-    /**
-        Adds a handler to be called once the request has finished.
-
-        :param: completionHandler A closure to be executed once the request has finished. The closure takes 4 arguments: the URL request, the URL response, if one was received, the property list, if one could be created from the URL response and data, and any error produced while creating the property list.
-
-        :returns: The request.
-    */
-    public func responsePropertyList(completionHandler: (NSURLRequest, NSHTTPURLResponse?, AnyObject?, NSError?) -> Void) -> Self {
-        return responsePropertyList(completionHandler: completionHandler)
-    }
-
     /**
         Adds a handler to be called once the request has finished.