Removed description from BLDCode.

This commit is contained in:
Timofey Solomko
2017-06-02 20:59:32 +03:00
parent 1c60202b5f
commit 83ca330934
+1 -11
View File
@@ -426,19 +426,9 @@ public class Deflate: DecompressionAlgorithm {
}
private enum BLDCode: CustomStringConvertible {
private enum BLDCode {
case byte(UInt8)
case lengthDistance(LengthDistance)
var description: String {
switch self {
case .byte(let byte):
return "raw symbol: \(byte)"
case .lengthDistance(let ld):
return "length: \(ld.length), length symbol: \(ld.lengthSymbol), " +
"distance: \(ld.distance), distance symbol: \(ld.distanceSymbol)"
}
}
}
private static func lengthEncode(_ rawBytes: [UInt8]) -> (codes: [BLDCode], stats: [Int]) {