@@ -177,18 +177,6 @@ open class NSData : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
177
177
}
178
178
}
179
179
180
- @available ( * , deprecated)
181
- /// Initializes a data object with the contents of the mapped file specified by a given path.
182
- public init ? ( contentsOfMappedFile path: String ) {
183
- NSUnimplemented ( )
184
- }
185
-
186
- @available ( * , deprecated)
187
- /// Creates and returns a data object from the mapped file at a given path.
188
- class func dataWithContentsOfMappedFile( _ path: String ) -> Any ? {
189
- NSUnimplemented ( )
190
- }
191
-
192
180
/// Initializes a data object with the contents of another data object.
193
181
public init ( data: Data ) {
194
182
super. init ( )
@@ -245,12 +233,6 @@ open class NSData : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
245
233
_init ( bytes: UnsafeMutableRawPointer ( mutating: decodedBytes) , length: decodedBytes. count, copy: true )
246
234
}
247
235
248
- @available ( * , deprecated)
249
- /// Initializes a data object initialized with the given Base64 encoded string.
250
- public init ? ( base64Encoding base64String: String ) {
251
- NSUnimplemented ( )
252
- }
253
-
254
236
/// Initializes a data object with the given Base64 encoded data.
255
237
public init ? ( base64Encoded base64Data: Data , options: Base64DecodingOptions = [ ] ) {
256
238
var encodedBytes = [ UInt8] ( repeating: 0 , count: base64Data. count)
@@ -743,13 +725,6 @@ open class NSData : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
743
725
return Data ( bytes: encodedBytes, count: encodedBytes. count)
744
726
}
745
727
746
- @available ( * , deprecated)
747
- /// Initializes a Base64 encoded String from the data object.
748
- /// Deprecated: You should transition to either base64EncodedString(options:) or base64EncodedData(options:)
749
- func base64Encoding( ) -> String {
750
- return base64EncodedString ( )
751
- }
752
-
753
728
/// The ranges of ASCII characters that are used to encode data in Base64.
754
729
private static let base64ByteMappings : [ Range < UInt8 > ] = [
755
730
65 ..< 91 , // A-Z
0 commit comments