File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
Sources/PureSwiftJSONCoding/Decoding Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ import PureSwiftJSONParsing
2
2
3
3
public struct JSONDecoder {
4
4
5
- private( set) var customEncoder : [ String : CustomEncoder ] = [ : ]
6
-
7
5
@usableFromInline var userInfo : [ CodingUserInfoKey : Any ] = [ : ]
8
6
9
7
public init ( ) {
@@ -23,14 +21,6 @@ public struct JSONDecoder {
23
21
}
24
22
}
25
23
26
- public typealias CustomEncoder = ( Encoder , [ CodingKey ] ) throws -> ( )
27
- public mutating func registerCustomEncoder( for type: Encodable . Type , encoder: @escaping CustomEncoder ) {
28
- self . customEncoder [ String ( describing: type) ] = encoder
29
- }
30
-
31
- public mutating func removeCustomEncoder( for type: Encodable . Type ) {
32
- self . customEncoder [ String ( describing: type) ] = nil
33
- }
34
24
}
35
25
36
26
@usableFromInline struct JSONDecoderImpl {
You can’t perform that action at this time.
0 commit comments