Skip to content

[stdlib] Remove redundant CustomStringConvertible conformance #657

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 19, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 1 addition & 34 deletions stdlib/public/core/UnicodeTrie.swift.gyb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down