Skip to content

Commit 0704e2e

Browse files
committed
Support: remove extension that is unused
Clean up the unused extension for `String` as work towards removing the UTF16 string extensions.
1 parent a2d6ddf commit 0704e2e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Sources/SwiftWin32/Support/String+UIExtensions.swift

-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
// Copyright © 2019 Saleem Abdulrasool <[email protected]>
22
// SPDX-License-Identifier: BSD-3-Clause
33

4-
extension String {
5-
internal init(from utf16: [UInt16]) {
6-
self = utf16.withUnsafeBufferPointer {
7-
String(decodingCString: $0.baseAddress!, as: UTF16.self)
8-
}
9-
}
10-
}
11-
124
extension String {
135
public var wide: [UInt16] {
146
return Array<UInt16>(from: self)

0 commit comments

Comments
 (0)