From bb09ba7cfc5e6babd32ef846adae55694d8d0e22 Mon Sep 17 00:00:00 2001 From: John DiSanti Date: Thu, 16 Nov 2023 17:48:59 -0800 Subject: [PATCH] Remove deprecations from codegen --- .../HttpConnectorConfigDecorator.kt | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/customizations/HttpConnectorConfigDecorator.kt b/codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/customizations/HttpConnectorConfigDecorator.kt index 9fcf05e0e7..343292055f 100644 --- a/codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/customizations/HttpConnectorConfigDecorator.kt +++ b/codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/customizations/HttpConnectorConfigDecorator.kt @@ -47,14 +47,6 @@ private class HttpConnectorConfigCustomization( is ServiceConfig.ConfigImpl -> writable { rustTemplate( """ - /// Deprecated. Don't use. - ##[deprecated( - note = "HTTP connector configuration changed. See https://github.com/smithy-lang/smithy-rs/discussions/3022 for upgrade guidance." - )] - pub fn http_connector(&self) -> Option<#{SharedHttpClient}> { - self.runtime_components.http_client() - } - /// Return the [`SharedHttpClient`](#{SharedHttpClient}) to use when making requests, if any. pub fn http_client(&self) -> Option<#{SharedHttpClient}> { self.runtime_components.http_client() @@ -67,22 +59,6 @@ private class HttpConnectorConfigCustomization( ServiceConfig.BuilderImpl -> writable { rustTemplate( """ - /// Deprecated. Don't use. - ##[deprecated( - note = "HTTP connector configuration changed. See https://github.com/smithy-lang/smithy-rs/discussions/3022 for upgrade guidance." - )] - pub fn http_connector(self, http_client: impl #{HttpClient} + 'static) -> Self { - self.http_client(http_client) - } - - /// Deprecated. Don't use. - ##[deprecated( - note = "HTTP connector configuration changed. See https://github.com/smithy-lang/smithy-rs/discussions/3022 for upgrade guidance." - )] - pub fn set_http_connector(&mut self, http_client: Option<#{SharedHttpClient}>) -> &mut Self { - self.set_http_client(http_client) - } - /// Sets the HTTP client to use when making requests. /// /// ## Examples