浏览代码

Removed commented out code in ResponseSerialization that is no longer needed.

Christian Noon 9 年之前
父节点
当前提交
1589afd233
共有 1 个文件被更改,包括 0 次插入6 次删除
  1. 0 6
      Source/ResponseSerialization.swift

+ 0 - 6
Source/ResponseSerialization.swift

@@ -31,9 +31,6 @@ public protocol ResponseSerializerType {
     /// The type of serialized object to be created by this `ResponseSerializerType`.
     associatedtype SerializedObject
 
-    /// The type of error to be created by this `ResponseSerializer` if serialization fails.
-//    associatedtype ErrorObject: Error
-
     /// A closure used by response handlers that takes a request, response, data and error and returns a result.
     var serializeResponse: (URLRequest?, HTTPURLResponse?, Data?, Error?) -> Result<SerializedObject> { get }
 }
@@ -45,9 +42,6 @@ public struct ResponseSerializer<Value>: ResponseSerializerType {
     /// The type of serialized object to be created by this `ResponseSerializer`.
     public typealias SerializedObject = Value
 
-    /// The type of error to be created by this `ResponseSerializer` if serialization fails.
-    //public typealias ErrorObject = ErrorType
-
     /// A closure used by response handlers that takes a request, response, data and error and returns a result.
     public var serializeResponse: (URLRequest?, HTTPURLResponse?, Data?, Error?) -> Result<Value>