File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed
stdlib/public/SDK/Foundation Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -30,34 +30,6 @@ extension Data : Codable {
30
30
private enum CodingKeys : Int , CodingKey {
31
31
case length
32
32
case bytes
33
-
34
- // TODO: Remove these when derived conformance is merged.
35
- var stringValue : String {
36
- switch self {
37
- case . length: return " length "
38
- case . bytes: return " bytes "
39
- }
40
- }
41
-
42
- init ? ( stringValue: String ) {
43
- switch stringValue {
44
- case " length " : self = . length
45
- case " bytes " : self = . bytes
46
- default : return nil
47
- }
48
- }
49
-
50
- var intValue : Int ? {
51
- return self . rawValue
52
- }
53
-
54
- init ? ( intValue: Int ) {
55
- switch intValue {
56
- case 0 : self = . length
57
- case 1 : self = . bytes
58
- default : return nil
59
- }
60
- }
61
33
}
62
34
63
35
public init ( from decoder: Decoder ) throws {
You can’t perform that action at this time.
0 commit comments