From ff606c6f78c0143c21d2b52b6c2549dd05fc4327 Mon Sep 17 00:00:00 2001 From: Johannes Weiss Date: Tue, 22 Oct 2019 17:47:08 -0700 Subject: [PATCH] remove all deprecations --- Sources/AsyncHTTPClient/HTTPClient.swift | 6 ------ Sources/AsyncHTTPClient/HTTPHandler.swift | 5 ----- 2 files changed, 11 deletions(-) diff --git a/Sources/AsyncHTTPClient/HTTPClient.swift b/Sources/AsyncHTTPClient/HTTPClient.swift index 4e1f1dd18..fa9c926ee 100644 --- a/Sources/AsyncHTTPClient/HTTPClient.swift +++ b/Sources/AsyncHTTPClient/HTTPClient.swift @@ -394,12 +394,6 @@ public class HTTPClient { /// Event Loop will be selected by the library. public static let indifferent = EventLoopPreference(.indifferent) - /// Library will try to use provided event loop if possible. - @available(*, deprecated, renamed: "delegate(on:)") - public static func prefers(_ eventLoop: EventLoop) -> EventLoopPreference { - return EventLoopPreference(.delegate(on: eventLoop)) - } - /// The delegate will be run on the specified EventLoop (and the Channel if possible). /// /// This will call the configured delegate on `eventLoop` and will try to use a `Channel` on the same diff --git a/Sources/AsyncHTTPClient/HTTPHandler.swift b/Sources/AsyncHTTPClient/HTTPHandler.swift index 990115f92..f56c210bb 100644 --- a/Sources/AsyncHTTPClient/HTTPHandler.swift +++ b/Sources/AsyncHTTPClient/HTTPHandler.swift @@ -438,11 +438,6 @@ extension HTTPClient { /// Response execution context. Will be created by the library and could be used for obtaining /// `EventLoopFuture` of the execution or cancellation of the execution. public final class Task { - @available(*, deprecated, renamed: "eventLoop") - public var currentEventLoop: EventLoop { - return self.eventLoop - } - /// The `EventLoop` the delegate will be executed on. public let eventLoop: EventLoop