From 1d42a33e7439aa0b4e40fef159ab10f47a30944e Mon Sep 17 00:00:00 2001 From: George Robinson Date: Sat, 23 Sep 2023 11:46:15 +0100 Subject: [PATCH] Remove unused function GetAlertmanagerURL Signed-off-by: George Robinson --- cli/utils.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cli/utils.go b/cli/utils.go index a1a3db7180..60221e239a 100644 --- a/cli/utils.go +++ b/cli/utils.go @@ -19,7 +19,6 @@ import ( "fmt" "net/url" "os" - "path" kingpin "github.com/alecthomas/kingpin/v2" "github.com/prometheus/common/model" @@ -30,13 +29,6 @@ import ( "github.com/prometheus/alertmanager/pkg/labels" ) -// GetAlertmanagerURL appends the given path to the alertmanager base URL -func GetAlertmanagerURL(p string) url.URL { - amURL := *alertmanagerURL - amURL.Path = path.Join(alertmanagerURL.Path, p) - return amURL -} - // parseMatchers parses a list of matchers (cli arguments). func parseMatchers(inputMatchers []string) ([]labels.Matcher, error) { matchers := make([]labels.Matcher, 0, len(inputMatchers))