Browse Source

Removing commented-out NSJSONWritingOptions code

Mattt Thompson 11 years ago
parent
commit
06e922d49e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/Alamofire.swift

+ 2 - 2
Source/Alamofire.swift

@@ -37,7 +37,7 @@ public enum Method: String {
 
 public enum ParameterEncoding {
     case URL
-    case JSON//(NSJSONWritingOptions)
+    case JSON
     case PropertyList(NSPropertyListFormat, NSPropertyListWriteOptions)
     case Custom((NSURLRequest, [String: AnyObject]?) -> (NSURLRequest, NSError?))
 
@@ -81,7 +81,7 @@ public enum ParameterEncoding {
 
                 mutableRequest.HTTPBody = query(parameters!).dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: false)
             }
-        case .JSON://(let options):
+        case .JSON:
             let options = NSJSONWritingOptions.allZeros
             if let data = NSJSONSerialization.dataWithJSONObject(parameters!, options: options, error: &error) {
                 mutableRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")