Skip to content

Commit

Permalink
[featuregate] Removed deprecated functions (open-telemetry#7587)
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerHelmuth authored and Alex Boten committed May 2, 2023
1 parent 9987a3a commit f14c41e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
16 changes: 16 additions & 0 deletions .chloggen/featuregate-remove-deprecated-functions.yaml
Original file line number Diff line number Diff line change
@@ -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:
5 changes: 0 additions & 5 deletions featuregate/gate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
3 changes: 0 additions & 3 deletions featuregate/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f14c41e

Please sign in to comment.