[stdlib] Remove redundant CustomStringConvertible conformance

The implementation is identical to the default string representation. The conformance and description property are never explicitly used.
This commit is contained in:
Patrick Pijnappel
2015-12-19 18:05:46 +11:00
parent e87be804c9
commit b5c3e23c40

View File

@@ -45,7 +45,7 @@ SuppDataBytesOffset = 12817
import SwiftShims
public // @testable
enum _GraphemeClusterBreakPropertyValue : Int, CustomStringConvertible {
enum _GraphemeClusterBreakPropertyValue : Int {
case Other = 0
case CR = 1
case LF = 2
@@ -59,39 +59,6 @@ enum _GraphemeClusterBreakPropertyValue : Int, CustomStringConvertible {
case T = 10
case LV = 11
case LVT = 12
/// A textual representation of `self`.
public // @testable
var description: String {
switch self {
case Other:
return "Other"
case CR:
return "CR"
case LF:
return "LF"
case Control:
return "Control"
case Extend:
return "Extend"
case Regional_Indicator:
return "Regional_Indicator"
case Prepend:
return "Prepend"
case SpacingMark:
return "SpacingMark"
case L:
return "L"
case V:
return "V"
case T:
return "T"
case LV:
return "LV"
case LVT:
return "LVT"
}
}
}
// It is expensive to convert a raw enum value to an enum, so we use this type