diff --git a/Sources/Common/Extensions.swift b/Sources/Common/Extensions.swift index 9f2228fb..421fe8a2 100644 --- a/Sources/Common/Extensions.swift +++ b/Sources/Common/Extensions.swift @@ -5,27 +5,6 @@ import Foundation -extension Data { - - @inline(__always) - func to(type: T.Type) -> T { - return self.withUnsafeBytes { $0.pointee } - } - - @inline(__always) - func toArray(type: T.Type, count: Int) -> [T] { - return self.withUnsafeBytes { - [T](UnsafeBufferPointer(start: $0, count: count)) - } - } - - @inline(__always) - func toArray(type: T.Type) -> [T] { - return self.toArray(type: type, count: self.count / MemoryLayout.size) - } - -} - extension UnsignedInteger { @inline(__always)