refactor: remove unreachable functions

Both were reported by deadcode: retry.WithBase was never used, and
PrometheusMiddleware.Initialize is a leftover from the chi-prometheus
code this middleware was adapted from.
This commit is contained in:
Trong Huu Nguyen
2026-07-28 12:52:45 +02:00
parent cb14d1624f
commit aa74b67a33
2 changed files with 0 additions and 14 deletions
-8
View File
@@ -62,14 +62,6 @@ func Prometheus(provider string, buckets ...float64) *PrometheusMiddleware {
return &m
}
func (m *PrometheusMiddleware) Initialize(path, method string, code int) {
m.reqs.WithLabelValues(
strconv.Itoa(code),
method,
path,
)
}
func (m *PrometheusMiddleware) Handler(next http.Handler) http.Handler {
relevantPaths := map[string]bool{
paths.OAuth2 + paths.Login: true,