From 6d21e50a162f8787b47f005d2dbb0d5b5b1fe916 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Tue, 26 Dec 2023 15:08:21 -0800 Subject: [PATCH] Support: remove extension that is unused Clean up the unused extension for `String` as work towards removing the UTF16 string extensions. --- Sources/SwiftWin32/Support/String+UIExtensions.swift | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Sources/SwiftWin32/Support/String+UIExtensions.swift b/Sources/SwiftWin32/Support/String+UIExtensions.swift index 85448a93..06f82e92 100644 --- a/Sources/SwiftWin32/Support/String+UIExtensions.swift +++ b/Sources/SwiftWin32/Support/String+UIExtensions.swift @@ -1,14 +1,6 @@ // Copyright © 2019 Saleem Abdulrasool // SPDX-License-Identifier: BSD-3-Clause -extension String { - internal init(from utf16: [UInt16]) { - self = utf16.withUnsafeBufferPointer { - String(decodingCString: $0.baseAddress!, as: UTF16.self) - } - } -} - extension String { public var wide: [UInt16] { return Array(from: self)