Skip to content

Commit 093578e

Browse files
committed
NSData: Dont add deprecated methods
1 parent 4b53d4c commit 093578e

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

Foundation/NSData.swift

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -177,18 +177,6 @@ open class NSData : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
177177
}
178178
}
179179

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-
192180
/// Initializes a data object with the contents of another data object.
193181
public init(data: Data) {
194182
super.init()
@@ -245,12 +233,6 @@ open class NSData : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
245233
_init(bytes: UnsafeMutableRawPointer(mutating: decodedBytes), length: decodedBytes.count, copy: true)
246234
}
247235

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-
254236
/// Initializes a data object with the given Base64 encoded data.
255237
public init?(base64Encoded base64Data: Data, options: Base64DecodingOptions = []) {
256238
var encodedBytes = [UInt8](repeating: 0, count: base64Data.count)
@@ -743,13 +725,6 @@ open class NSData : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
743725
return Data(bytes: encodedBytes, count: encodedBytes.count)
744726
}
745727

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-
753728
/// The ranges of ASCII characters that are used to encode data in Base64.
754729
private static let base64ByteMappings: [Range<UInt8>] = [
755730
65 ..< 91, // A-Z

0 commit comments

Comments
 (0)