From 27eb7e356cc8b7a644b517c82fa4b417a13a768c Mon Sep 17 00:00:00 2001 From: Johannes Weiss Date: Fri, 11 Feb 2022 16:50:25 +0000 Subject: [PATCH] delete some dead code --- .../HTTPConnectionPool+Factory.swift | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/Sources/AsyncHTTPClient/ConnectionPool/HTTPConnectionPool+Factory.swift b/Sources/AsyncHTTPClient/ConnectionPool/HTTPConnectionPool+Factory.swift index 4a3338697..1ffa5f4a5 100644 --- a/Sources/AsyncHTTPClient/ConnectionPool/HTTPConnectionPool+Factory.swift +++ b/Sources/AsyncHTTPClient/ConnectionPool/HTTPConnectionPool+Factory.swift @@ -104,39 +104,6 @@ extension HTTPConnectionPool.ConnectionFactory { case http2(Channel) } - func makeHTTP1Channel( - connectionID: HTTPConnectionPool.Connection.ID, - deadline: NIODeadline, - eventLoop: EventLoop, - logger: Logger - ) -> EventLoopFuture { - self.makeChannel( - connectionID: connectionID, - deadline: deadline, - eventLoop: eventLoop, - logger: logger - ).flatMapThrowing { negotiated -> Channel in - - guard case .http1_1(let channel) = negotiated else { - preconditionFailure("Expected to create http/1.1 connections only for now") - } - - // add the http1.1 channel handlers - let syncOperations = channel.pipeline.syncOperations - try syncOperations.addHTTPClientHandlers(leftOverBytesStrategy: .forwardBytes) - - switch self.clientConfiguration.decompression { - case .disabled: - () - case .enabled(let limit): - let decompressHandler = NIOHTTPResponseDecompressor(limit: limit) - try syncOperations.addHandler(decompressHandler) - } - - return channel - } - } - func makeChannel( connectionID: HTTPConnectionPool.Connection.ID, deadline: NIODeadline,