From d2d74d52b95ffdf92c1864cff663b7bb28f4ccca Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Tue, 2 Jan 2018 17:47:06 +0300 Subject: [PATCH] Remove unused extensions --- Sources/Common/Extensions.swift | 21 --------------------- 1 file changed, 21 deletions(-) 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)