Skip to content

Commit 32b517b

Browse files
committed
remove unused decompression error
1 parent e90c3d7 commit 32b517b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Sources/WebSocketKit/Concurrency/Compression/Decompression.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public enum Decompression {
44

55
public struct Configuration {
66
/// `deflate` is the main compression algorithm for web-sockets (RFC 7692),
7-
/// and for now we only support `deflate`.
7+
/// so for now we only support `deflate`.
88
let algorithm: Compression.Algorithm = .deflate
99

1010
private init() { }
@@ -15,17 +15,13 @@ public enum Decompression {
1515
public struct DecompressionError: Error, Equatable, CustomStringConvertible {
1616

1717
private enum Base: Error, Equatable {
18-
case limit
1918
case inflationError(Int)
2019
case initializationError(Int)
2120
case invalidTrailingData
2221
}
2322

2423
private var base: Base
2524

26-
/// The set ``DecompressionLimit`` has been exceeded
27-
public static let limit = Self(base: .limit)
28-
2925
/// An error occurred when inflating. Error code is included to aid diagnosis.
3026
public static var inflationError: (Int) -> Self = {
3127
Self(base: .inflationError($0))

0 commit comments

Comments
 (0)