Skip to content

Commit

Permalink
Support: remove extension that is unused
Browse files Browse the repository at this point in the history
Clean up the unused extension for `String` as work towards removing the
UTF16 string extensions.
  • Loading branch information
compnerd committed Dec 26, 2023
1 parent a2d6ddf commit 6d21e50
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Sources/SwiftWin32/Support/String+UIExtensions.swift
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
// Copyright © 2019 Saleem Abdulrasool <[email protected]>
// 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<UInt16>(from: self)
Expand Down

0 comments on commit 6d21e50

Please sign in to comment.