Skip to content

Commit

Permalink
Remove deprecations from codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
jdisanti committed Nov 17, 2023
1 parent bdafc8c commit bb09ba7
Showing 1 changed file with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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
Expand Down

0 comments on commit bb09ba7

Please sign in to comment.