Skip to content

Commit

Permalink
Remove unused function GetAlertmanagerURL (prometheus#3535)
Browse files Browse the repository at this point in the history
Signed-off-by: George Robinson <[email protected]>
  • Loading branch information
grobinson-grafana committed Sep 25, 2023
1 parent b517645 commit c6be0bc
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions cli/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
"fmt"
"net/url"
"os"
"path"

kingpin "github.com/alecthomas/kingpin/v2"
"github.com/prometheus/common/model"
Expand All @@ -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))
Expand Down

0 comments on commit c6be0bc

Please sign in to comment.