From d3588677d3bf44bab8685b40ce9c1663dc68c011 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 30 Mar 2022 19:15:55 +0200 Subject: [PATCH] cli/context/store: remove unused Store.ForeachEndpointType() This was added in 4f14c4995ea5d96d91caeb03bb2e700572c97660, in preparation of 1433e274204f6bd239f59d14eaf103dfa859ad8c, but no longer used, so we can remove it. Signed-off-by: Sebastiaan van Stijn --- cli/context/store/storeconfig.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/cli/context/store/storeconfig.go b/cli/context/store/storeconfig.go index 9c93ecbab2b1..e1b54238f9ff 100644 --- a/cli/context/store/storeconfig.go +++ b/cli/context/store/storeconfig.go @@ -30,16 +30,6 @@ func (c Config) SetEndpoint(name string, getter TypeGetter) { c.endpointTypes[name] = getter } -// ForeachEndpointType calls cb on every endpoint type registered with the Config -func (c Config) ForeachEndpointType(cb func(string, TypeGetter) error) error { - for n, ep := range c.endpointTypes { - if err := cb(n, ep); err != nil { - return err - } - } - return nil -} - // NewConfig creates a config object func NewConfig(contextType TypeGetter, endpoints ...NamedTypeGetter) Config { res := Config{