Skip to content

Commit d358867

Browse files
committed
cli/context/store: remove unused Store.ForeachEndpointType()
This was added in 4f14c49, in preparation of 1433e27, but no longer used, so we can remove it. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 5348dbf commit d358867

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

cli/context/store/storeconfig.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,6 @@ func (c Config) SetEndpoint(name string, getter TypeGetter) {
3030
c.endpointTypes[name] = getter
3131
}
3232

33-
// ForeachEndpointType calls cb on every endpoint type registered with the Config
34-
func (c Config) ForeachEndpointType(cb func(string, TypeGetter) error) error {
35-
for n, ep := range c.endpointTypes {
36-
if err := cb(n, ep); err != nil {
37-
return err
38-
}
39-
}
40-
return nil
41-
}
42-
4333
// NewConfig creates a config object
4434
func NewConfig(contextType TypeGetter, endpoints ...NamedTypeGetter) Config {
4535
res := Config{

0 commit comments

Comments
 (0)