From 68932a0e77c0683fb253f7d7446d1c94e151fade Mon Sep 17 00:00:00 2001 From: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com> Date: Mon, 1 May 2023 16:34:54 -0600 Subject: [PATCH] [featuregate] Removed deprecated functions (#7587) --- .../featuregate-remove-deprecated-functions.yaml | 16 ++++++++++++++++ featuregate/gate.go | 5 ----- featuregate/registry.go | 3 --- 3 files changed, 16 insertions(+), 8 deletions(-) create mode 100755 .chloggen/featuregate-remove-deprecated-functions.yaml diff --git a/.chloggen/featuregate-remove-deprecated-functions.yaml b/.chloggen/featuregate-remove-deprecated-functions.yaml new file mode 100755 index 00000000000..f3a307c7c59 --- /dev/null +++ b/.chloggen/featuregate-remove-deprecated-functions.yaml @@ -0,0 +1,16 @@ +# 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: featuregate + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: Remove deprecated `RemovalVersion` and `WithRegisterRemovalVersion` functions. + +# One or more tracking issues or pull requests related to the change +issues: [7587] + +# (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: diff --git a/featuregate/gate.go b/featuregate/gate.go index 3c573f41285..2ba4ec78997 100644 --- a/featuregate/gate.go +++ b/featuregate/gate.go @@ -62,8 +62,3 @@ func (g *Gate) FromVersion() string { func (g *Gate) ToVersion() string { return g.toVersion } - -// Deprecated: [v0.76.0] use ToVersion(). -func (g *Gate) RemovalVersion() string { - return g.ToVersion() -} diff --git a/featuregate/registry.go b/featuregate/registry.go index c6b5a2f89f4..82310f820c3 100644 --- a/featuregate/registry.go +++ b/featuregate/registry.go @@ -62,9 +62,6 @@ func WithRegisterReferenceURL(url string) RegisterOption { }) } -// Deprecated: [v0.76.0] use WithRegisterToVersion. -var WithRegisterRemovalVersion = WithRegisterToVersion - // WithRegisterFromVersion is used to set the Gate "FromVersion". // The "FromVersion" contains the Collector release when a feature is introduced. func WithRegisterFromVersion(fromVersion string) RegisterOption {