Skip to content

Commit

Permalink
Removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Bouke committed Apr 5, 2017
1 parent 7b73e65 commit 741bd70
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions Sources/DNS/Data+Extensions.swift
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
import Foundation

// Removed in Xcode 8 beta 3
func + (lhs: Data, rhs: Data) -> Data {
var result = lhs
result.append(rhs)
return result
}

// Removed in Xcode 8 beta 3
extension Data {
init<C: Collection>(_ collection: C) where C.Iterator.Element == UInt8 {
self = Data(bytes: Array(collection))
}
}

extension Data {
init?(hex: String) {
var result = [UInt8]()
Expand Down Expand Up @@ -45,7 +31,6 @@ extension RandomAccessCollection where Iterator.Element == UInt8, Index == Int {
while start < endIndex {
_ = formIndex(&end, offsetBy: 24, limitedBy: endIndex)

// print(UInt32(distance(from: startIndex, to: start).toIntMax()).bytes.hex, terminator: ": ")
print(String(format: "%6d: ", UInt32(distance(from: startIndex, to: start).toIntMax())), terminator: "")

var byteStart = start
Expand Down

0 comments on commit 741bd70

Please sign in to comment.