Kaynağa Gözat

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

Christian Noon 9 yıl önce
ebeveyn
işleme
1589afd233
1 değiştirilmiş dosya ile 0 ekleme ve 6 silme
  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>