Skip to content

Commit 049dc7f

Browse files
authored
Merge pull request #2817 from DoubleSpeak/trim-operators
2 parents 16dc4f8 + 44d8dad commit 049dc7f

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

Sources/SwiftParser/Lexer/UnicodeScalarExtensions.swift

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -245,24 +245,6 @@ extension UInt8 {
245245
}
246246

247247
/// Allows direct comparisons between UInt8 and double quoted literals.
248-
extension UInt8 {
249-
/// Equality operator
250-
@_transparent
251-
static func == (i: Self, s: Unicode.Scalar) -> Bool {
252-
return i == UInt8(ascii: s)
253-
}
254-
/// Inequality operator
255-
@_transparent
256-
static func != (i: Self, s: Unicode.Scalar) -> Bool {
257-
return i != UInt8(ascii: s)
258-
}
259-
/// Used in switch statements
260-
@_transparent
261-
static func ~= (s: Unicode.Scalar, i: Self) -> Bool {
262-
return i == UInt8(ascii: s)
263-
}
264-
}
265-
266248
extension UInt8? {
267249
/// Equality operator
268250
@_transparent

0 commit comments

Comments
 (0)