mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stdlib: Remove a redundant _precondition from _asUTF16CodeUnit
Swift SVN r19583
This commit is contained in:
@@ -231,8 +231,6 @@ extension UnicodeScalar : Comparable {
|
||||
return us
|
||||
}
|
||||
@public func _asUTF16CodeUnit(us: UnicodeScalar) -> UTF16.CodeUnit {
|
||||
var codePoint = us.value
|
||||
_precondition(codePoint <= UInt32(UInt16.max))
|
||||
return UTF16.CodeUnit(codePoint)
|
||||
return UTF16.CodeUnit(us.value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user