Skip to content

Commit 7c30e1a

Browse files
committed
Fix macOS warnings
1 parent 827796c commit 7c30e1a

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

Sources/PatternPreferences.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ open class ProxyPreferences {
294294
return nil
295295
}
296296

297-
298297
/// Want a recustion with multiple proxy, testing ["key1"]["key2"]
299298
fileprivate func hasRecursion() -> Bool {
300299
return self.separator != nil

Sources/UserDefaults/UserDefaults+Adds.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ public extension Foundation.UserDefaults {
8989

9090
#if os(OSX)
9191
// MARK: NSRect
92-
public func nsRectForKey(key: String) -> NSRect? {
92+
func nsRectForKey(key: String) -> NSRect? {
9393
if let string = self.string(forKey: key) {
9494
return NSRectFromString(string)
9595
}
9696
return nil
9797
}
9898

9999
// MARK: NSSize
100-
public func nsSizeForKey(key: String) -> NSSize? {
100+
func nsSizeForKey(key: String) -> NSSize? {
101101
if let string = self.string(forKey: key) {
102102
return NSCoder.cgSize(for: string)
103103
}

0 commit comments

Comments
 (0)