Skip to content

Commit 832317c

Browse files
author
Itai Ferber
committed
Remove unnecessary __shared annotations
1 parent 9f042bc commit 832317c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/public/SDK/Foundation/Data.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessColl
11781178
/// - parameter url: The `URL` to read.
11791179
/// - parameter options: Options for the read operation. Default value is `[]`.
11801180
/// - throws: An error in the Cocoa domain, if `url` cannot be read.
1181-
public init(contentsOf url: __shared URL, options: __shared Data.ReadingOptions = []) throws {
1181+
public init(contentsOf url: __shared URL, options: Data.ReadingOptions = []) throws {
11821182
let d = try NSData(contentsOf: url, options: ReadingOptions(rawValue: options.rawValue))
11831183
_backing = _DataStorage(immutableReference: d, offset: 0)
11841184
_sliceRange = 0..<d.length
@@ -1189,7 +1189,7 @@ public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessColl
11891189
/// Returns nil when the input is not recognized as valid Base-64.
11901190
/// - parameter base64String: The string to parse.
11911191
/// - parameter options: Encoding options. Default value is `[]`.
1192-
public init?(base64Encoded base64String: __shared String, options: __shared Data.Base64DecodingOptions = []) {
1192+
public init?(base64Encoded base64String: __shared String, options: Data.Base64DecodingOptions = []) {
11931193
if let d = NSData(base64Encoded: base64String, options: Base64DecodingOptions(rawValue: options.rawValue)) {
11941194
_backing = _DataStorage(immutableReference: d, offset: 0)
11951195
_sliceRange = 0..<d.length
@@ -1204,7 +1204,7 @@ public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessColl
12041204
///
12051205
/// - parameter base64Data: Base-64, UTF-8 encoded input data.
12061206
/// - parameter options: Decoding options. Default value is `[]`.
1207-
public init?(base64Encoded base64Data: __shared Data, options: __shared Data.Base64DecodingOptions = []) {
1207+
public init?(base64Encoded base64Data: __shared Data, options: Data.Base64DecodingOptions = []) {
12081208
if let d = NSData(base64Encoded: base64Data, options: Base64DecodingOptions(rawValue: options.rawValue)) {
12091209
_backing = _DataStorage(immutableReference: d, offset: 0)
12101210
_sliceRange = 0..<d.length

0 commit comments

Comments
 (0)