From 25f65d48ba47369eb28cc6046c2aecf19e16ea2e Mon Sep 17 00:00:00 2001 From: TylerHelmuth <12352919+TylerHelmuth@users.noreply.github.com> Date: Tue, 23 Jan 2024 19:23:21 -0700 Subject: [PATCH] Remove deprecated functions --- ...confignet-remove-deprecated-functions.yaml | 25 +++++++++++++++++++ config/confignet/confignet.go | 24 ------------------ 2 files changed, 25 insertions(+), 24 deletions(-) create mode 100755 .chloggen/confignet-remove-deprecated-functions.yaml diff --git a/.chloggen/confignet-remove-deprecated-functions.yaml b/.chloggen/confignet-remove-deprecated-functions.yaml new file mode 100755 index 00000000000..70b155b0f83 --- /dev/null +++ b/.chloggen/confignet-remove-deprecated-functions.yaml @@ -0,0 +1,25 @@ +# Use this changelog template to create an entry for release notes. + +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: breaking + +# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver) +component: confignet + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: Remove deprecated `DialContext` and `ListenContext` functions + +# One or more tracking issues or pull requests related to the change +issues: [9363] + +# (Optional) One or more lines of additional information to render under the primary note. +# These lines will be padded with 2 spaces and then inserted directly into the document. +# Use pipe (|) for multiline entries. +subtext: + +# Optional: The change log or logs in which this entry should be included. +# e.g. '[user]' or '[user, api]' +# Include 'user' if the change is relevant to end users. +# Include 'api' if there is a change to a library API. +# Default: '[user]' +change_logs: [api] \ No newline at end of file diff --git a/config/confignet/confignet.go b/config/confignet/confignet.go index ad4e17c14aa..21c854586d2 100644 --- a/config/confignet/confignet.go +++ b/config/confignet/confignet.go @@ -45,18 +45,6 @@ func (na *NetAddr) Listen(ctx context.Context) (net.Listener, error) { return lc.Listen(ctx, na.Transport, na.Endpoint) } -// DialContext equivalent with net.Dialer's DialContext for this address. -// Deprecated: [v0.93.0] use Dial instead. -func (na *NetAddr) DialContext(ctx context.Context) (net.Conn, error) { - return na.Dial(ctx) -} - -// ListenContext equivalent with net.ListenConfig's Listen for this address. -// Deprecated: [v0.93.0] use Listen instead. -func (na *NetAddr) ListenContext(ctx context.Context) (net.Listener, error) { - return na.Listen(ctx) -} - // TCPAddr represents a TCP endpoint address. type TCPAddr struct { // Endpoint configures the address for this network connection. @@ -81,15 +69,3 @@ func (na *TCPAddr) Listen(ctx context.Context) (net.Listener, error) { lc := net.ListenConfig{} return lc.Listen(ctx, "tcp", na.Endpoint) } - -// DialContext equivalent with net.Dialer's DialContext for this address. -// Deprecated: [v0.93.0] use Dial instead. -func (na *TCPAddr) DialContext(ctx context.Context) (net.Conn, error) { - return na.Dial(ctx) -} - -// ListenContext equivalent with net.ListenConfig's Listen for this address. -// Deprecated: [v0.93.0] use Listen instead. -func (na *TCPAddr) ListenContext(ctx context.Context) (net.Listener, error) { - return na.Listen(ctx) -}