Skip to content

Commit d5d17fa

Browse files
committed
Fix warnings for the rest of stdlib
1 parent a0ebe3a commit d5d17fa

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

stdlib/public/SDK/AppKit/AppKit_FoundationExtensions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import Foundation
1414
@_exported import AppKit
1515

1616
// NSCollectionView extensions
17-
public extension IndexPath {
17+
extension IndexPath {
1818

1919
/// Initialize for use with `NSCollectionView`.
2020
public init(item: Int, section: Int) {
@@ -51,7 +51,7 @@ public extension IndexPath {
5151

5252
}
5353

54-
public extension URLResourceValues {
54+
extension URLResourceValues {
5555
/// Returns all thumbnails as a single NSImage.
5656
@available(macOS 10.10, *)
5757
public var thumbnail : NSImage? {

stdlib/public/SDK/CloudKit/NestedNames.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
@nonobjc
1818
@available(macOS 10.10, iOS 8.0, watchOS 3.0, *)
19-
public extension CKContainer {
19+
extension CKContainer {
2020
@available(swift 4.2)
2121
public enum Application {
2222
public typealias Permissions = CKContainer_Application_Permissions

stdlib/public/SDK/CoreGraphics/CoreGraphics.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,10 +429,10 @@ public extension CGRect {
429429
}
430430

431431
@available(*, unavailable, renamed: "minX")
432-
public var x: CGFloat { return minX }
432+
var x: CGFloat { return minX }
433433

434434
@available(*, unavailable, renamed: "minY")
435-
public var y: CGFloat { return minY }
435+
var y: CGFloat { return minY }
436436
}
437437

438438
extension CGRect : CustomReflectable {

stdlib/public/SDK/Intents/INIntent.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import Foundation
1717

1818
public protocol _INIntentSetImageKeyPath { }
1919

20-
public extension _INIntentSetImageKeyPath {
20+
extension _INIntentSetImageKeyPath {
2121

2222
@available(iOS 12.0, watchOS 5.0, macOS 10.14, *)
2323
public func setImage<Value>(_ image: INImage?, forParameterNamed parameterName: KeyPath<Self, Value>) {

stdlib/public/core/Codable.swift.gyb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,7 @@ internal struct _GenericIndexKey : CodingKey {
13241324
}
13251325
}
13261326

1327-
public extension DecodingError {
1327+
extension DecodingError {
13281328
/// Returns a new `.dataCorrupted` error using a constructed coding path and
13291329
/// the given debug description.
13301330
///
@@ -2058,7 +2058,7 @@ extension Dictionary : Decodable where Key : Decodable, Value : Decodable {
20582058

20592059
// Default implementation of encodeConditional(_:forKey:) in terms of
20602060
// encode(_:forKey:)
2061-
public extension KeyedEncodingContainerProtocol {
2061+
extension KeyedEncodingContainerProtocol {
20622062
@inlinable // FIXME(sil-serialize-all)
20632063
public mutating func encodeConditional<T : AnyObject & Encodable>(
20642064
_ object: T, forKey key: Key) throws
@@ -2069,7 +2069,7 @@ public extension KeyedEncodingContainerProtocol {
20692069

20702070
// Default implementation of encodeIfPresent(_:forKey:) in terms of
20712071
// encode(_:forKey:)
2072-
public extension KeyedEncodingContainerProtocol {
2072+
extension KeyedEncodingContainerProtocol {
20732073
% for type in codable_types:
20742074
@inlinable // FIXME(sil-serialize-all)
20752075
public mutating func encodeIfPresent(
@@ -2091,7 +2091,7 @@ public extension KeyedEncodingContainerProtocol {
20912091

20922092
// Default implementation of decodeIfPresent(_:forKey:) in terms of
20932093
// decode(_:forKey:) and decodeNil(forKey:)
2094-
public extension KeyedDecodingContainerProtocol {
2094+
extension KeyedDecodingContainerProtocol {
20952095
% for type in codable_types:
20962096
@inlinable // FIXME(sil-serialize-all)
20972097
public func decodeIfPresent(
@@ -2115,7 +2115,7 @@ public extension KeyedDecodingContainerProtocol {
21152115

21162116
// Default implementation of encodeConditional(_:) in terms of encode(_:),
21172117
// and encode(contentsOf:) in terms of encode(_:) loop.
2118-
public extension UnkeyedEncodingContainer {
2118+
extension UnkeyedEncodingContainer {
21192119
@inlinable // FIXME(sil-serialize-all)
21202120
public mutating func encodeConditional<T : AnyObject & Encodable>(
21212121
_ object: T) throws
@@ -2146,7 +2146,7 @@ public extension UnkeyedEncodingContainer {
21462146

21472147
// Default implementation of decodeIfPresent(_:) in terms of decode(_:) and
21482148
// decodeNil()
2149-
public extension UnkeyedDecodingContainer {
2149+
extension UnkeyedDecodingContainer {
21502150
% for type in codable_types:
21512151
@inlinable // FIXME(sil-serialize-all)
21522152
public mutating func decodeIfPresent(

0 commit comments

Comments
 (0)