diff --git a/Sources/WebSocketKit/Concurrency/Compression/Decompression.swift b/Sources/WebSocketKit/Concurrency/Compression/Decompression.swift index 5d456493..56a01588 100644 --- a/Sources/WebSocketKit/Concurrency/Compression/Decompression.swift +++ b/Sources/WebSocketKit/Concurrency/Compression/Decompression.swift @@ -4,7 +4,7 @@ public enum Decompression { public struct Configuration { /// `deflate` is the main compression algorithm for web-sockets (RFC 7692), - /// and for now we only support `deflate`. + /// so for now we only support `deflate`. let algorithm: Compression.Algorithm = .deflate private init() { } @@ -15,7 +15,6 @@ public enum Decompression { public struct DecompressionError: Error, Equatable, CustomStringConvertible { private enum Base: Error, Equatable { - case limit case inflationError(Int) case initializationError(Int) case invalidTrailingData @@ -23,9 +22,6 @@ public enum Decompression { private var base: Base - /// The set ``DecompressionLimit`` has been exceeded - public static let limit = Self(base: .limit) - /// An error occurred when inflating. Error code is included to aid diagnosis. public static var inflationError: (Int) -> Self = { Self(base: .inflationError($0))