Remove unused feature flags (#3676)

This commit removes some code that should have been removed in #3668.
The FeatureFlags in silence.Options are no longer used but were
still initialized. These had a no-op effect.

Signed-off-by: George Robinson <george.robinson@grafana.com>
This commit is contained in:
George Robinson 2024-01-19 10:43:50 +00:00 committed by GitHub
parent 30fa9cd44b
commit f92a08d073
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View File

@ -251,7 +251,6 @@ func run() int {
Retention: *retention,
Logger: log.With(logger, "component", "silences"),
Metrics: prometheus.DefaultRegisterer,
FeatureFlags: ff,
}
silences, err := silence.New(silenceOpts)

View File

@ -37,7 +37,6 @@ import (
"github.com/prometheus/common/model"
"github.com/prometheus/alertmanager/cluster"
"github.com/prometheus/alertmanager/featurecontrol"
"github.com/prometheus/alertmanager/matchers/compat"
"github.com/prometheus/alertmanager/pkg/labels"
pb "github.com/prometheus/alertmanager/silence/silencepb"
@ -319,7 +318,6 @@ type Options struct {
// A logger used by background processing.
Logger log.Logger
Metrics prometheus.Registerer
FeatureFlags featurecontrol.Flagger
}
func (o *Options) validate() error {