File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public enum UnicodeDecodingResult : Equatable {
61
61
/// decoded Unicode scalar values.
62
62
///
63
63
/// - SeeAlso: `UTF8`, `UTF16`, `UTF32`, `UnicodeScalar`
64
- public protocol UnicodeCodec {
64
+ public protocol UnicodeCodec : UnicodeEncoding {
65
65
66
66
/// A type that can hold code unit values for this encoding.
67
67
associatedtype CodeUnit
@@ -968,12 +968,6 @@ extension UnicodeCodec where CodeUnit : UnsignedInteger {
968
968
}
969
969
}
970
970
971
- extension UnicodeCodec {
972
- public static func _nullCodeUnitOffset( in input: UnsafePointer < CodeUnit > ) -> Int {
973
- fatalError ( " _nullCodeUnitOffset(in:) implementation should be provided " )
974
- }
975
- }
976
-
977
971
@available ( * , unavailable, renamed: " UnicodeCodec " )
978
972
public typealias UnicodeCodecType = UnicodeCodec
979
973
You can’t perform that action at this time.
0 commit comments