Skip to content

Commit 9a69b8f

Browse files
grobinson-grafanaalexweav
authored andcommitted
Remove unused function GetAlertmanagerURL (prometheus#3535)
Signed-off-by: George Robinson <[email protected]>
1 parent 1631915 commit 9a69b8f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

cli/utils.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919
"fmt"
2020
"net/url"
2121
"os"
22-
"path"
2322

2423
kingpin "github.com/alecthomas/kingpin/v2"
2524
"github.com/prometheus/common/model"
@@ -30,13 +29,6 @@ import (
3029
"github.com/prometheus/alertmanager/pkg/labels"
3130
)
3231

33-
// GetAlertmanagerURL appends the given path to the alertmanager base URL
34-
func GetAlertmanagerURL(p string) url.URL {
35-
amURL := *alertmanagerURL
36-
amURL.Path = path.Join(alertmanagerURL.Path, p)
37-
return amURL
38-
}
39-
4032
// parseMatchers parses a list of matchers (cli arguments).
4133
func parseMatchers(inputMatchers []string) ([]labels.Matcher, error) {
4234
matchers := make([]labels.Matcher, 0, len(inputMatchers))

0 commit comments

Comments
 (0)