1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-28 02:54:31 +03:00

Remove unused method

This commit is contained in:
Tae Won Ha 2018-05-13 10:02:27 +02:00
parent 07ae25d302
commit 65961a28ce
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -429,17 +429,6 @@ class UiBridge {
private let timeout = CFTimeInterval(5)
private extension Data {
func asArray<T>(ofType: T.Type, count: Int) -> [T]? {
guard (self.count / MemoryLayout<T>.stride) <= count else {
return nil
}
return self.withUnsafeBytes { (p: UnsafePointer<T>) in Array(UnsafeBufferPointer(start: p, count: count)) }
}
}
private extension Array {
func data() -> Data {