From 83ca330934e89f314fac2ed19cd4943834c8d7e7 Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Fri, 2 Jun 2017 20:59:32 +0300 Subject: [PATCH] Removed description from BLDCode. --- Sources/Deflate.swift | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Sources/Deflate.swift b/Sources/Deflate.swift index 084357a0..2ef99612 100644 --- a/Sources/Deflate.swift +++ b/Sources/Deflate.swift @@ -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]) {