From 06ee5e9344d87108ac1c774e95dcb323b389e7b6 Mon Sep 17 00:00:00 2001 From: der richter Date: Wed, 21 Feb 2024 21:27:15 +0100 Subject: [PATCH] mac: code consistency changes --- osdep/macos/swift_extensions.swift | 4 ---- 1 file changed, 4 deletions(-) diff --git a/osdep/macos/swift_extensions.swift b/osdep/macos/swift_extensions.swift index 127c568abe..c0a7cd95e4 100644 --- a/osdep/macos/swift_extensions.swift +++ b/osdep/macos/swift_extensions.swift @@ -22,7 +22,6 @@ extension NSDeviceDescriptionKey { } extension NSScreen { - public var displayID: CGDirectDisplayID { get { return deviceDescription[.screenNumber] as? CGDirectDisplayID ?? 0 @@ -31,7 +30,6 @@ extension NSScreen { } extension NSColor { - convenience init(hex: String) { let int = Int(hex.dropFirst(), radix: 16) ?? 0 let alpha = CGFloat((int >> 24) & 0x000000FF)/255 @@ -44,14 +42,12 @@ extension NSColor { } extension Bool { - init(_ int32: Int32) { self.init(int32 != 0) } } extension Int32 { - init(_ bool: Bool) { self.init(bool ? 1 : 0) }