Skip to content

Commit 0c3f2e8

Browse files
committed
Merge pull request #657 from PatrickPijnappel/enums
[stdlib] Remove redundant CustomStringConvertible conformance
2 parents 6ecde6b + b5c3e23 commit 0c3f2e8

File tree

1 file changed

+1
-34
lines changed

1 file changed

+1
-34
lines changed

stdlib/public/core/UnicodeTrie.swift.gyb

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ SuppDataBytesOffset = 12817
4545
import SwiftShims
4646

4747
public // @testable
48-
enum _GraphemeClusterBreakPropertyValue : Int, CustomStringConvertible {
48+
enum _GraphemeClusterBreakPropertyValue : Int {
4949
case Other = 0
5050
case CR = 1
5151
case LF = 2
@@ -59,39 +59,6 @@ enum _GraphemeClusterBreakPropertyValue : Int, CustomStringConvertible {
5959
case T = 10
6060
case LV = 11
6161
case LVT = 12
62-
63-
/// A textual representation of `self`.
64-
public // @testable
65-
var description: String {
66-
switch self {
67-
case Other:
68-
return "Other"
69-
case CR:
70-
return "CR"
71-
case LF:
72-
return "LF"
73-
case Control:
74-
return "Control"
75-
case Extend:
76-
return "Extend"
77-
case Regional_Indicator:
78-
return "Regional_Indicator"
79-
case Prepend:
80-
return "Prepend"
81-
case SpacingMark:
82-
return "SpacingMark"
83-
case L:
84-
return "L"
85-
case V:
86-
return "V"
87-
case T:
88-
return "T"
89-
case LV:
90-
return "LV"
91-
case LVT:
92-
return "LVT"
93-
}
94-
}
9562
}
9663

9764
// It is expensive to convert a raw enum value to an enum, so we use this type

0 commit comments

Comments
 (0)