Skip to content

Commit 27eb7e3

Browse files
committed
delete some dead code
1 parent 7a4dfe0 commit 27eb7e3

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

Sources/AsyncHTTPClient/ConnectionPool/HTTPConnectionPool+Factory.swift

-33
Original file line numberDiff line numberDiff line change
@@ -104,39 +104,6 @@ extension HTTPConnectionPool.ConnectionFactory {
104104
case http2(Channel)
105105
}
106106

107-
func makeHTTP1Channel(
108-
connectionID: HTTPConnectionPool.Connection.ID,
109-
deadline: NIODeadline,
110-
eventLoop: EventLoop,
111-
logger: Logger
112-
) -> EventLoopFuture<Channel> {
113-
self.makeChannel(
114-
connectionID: connectionID,
115-
deadline: deadline,
116-
eventLoop: eventLoop,
117-
logger: logger
118-
).flatMapThrowing { negotiated -> Channel in
119-
120-
guard case .http1_1(let channel) = negotiated else {
121-
preconditionFailure("Expected to create http/1.1 connections only for now")
122-
}
123-
124-
// add the http1.1 channel handlers
125-
let syncOperations = channel.pipeline.syncOperations
126-
try syncOperations.addHTTPClientHandlers(leftOverBytesStrategy: .forwardBytes)
127-
128-
switch self.clientConfiguration.decompression {
129-
case .disabled:
130-
()
131-
case .enabled(let limit):
132-
let decompressHandler = NIOHTTPResponseDecompressor(limit: limit)
133-
try syncOperations.addHandler(decompressHandler)
134-
}
135-
136-
return channel
137-
}
138-
}
139-
140107
func makeChannel(
141108
connectionID: HTTPConnectionPool.Connection.ID,
142109
deadline: NIODeadline,

0 commit comments

Comments
 (0)