Skip to content

Commit

Permalink
cli/context/store: remove unused Store.ForeachEndpointType()
Browse files Browse the repository at this point in the history
This was added in 4f14c49, in preparation
of 1433e27, but no longer used, so we
can remove it.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed May 5, 2023
1 parent 5348dbf commit d358867
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions cli/context/store/storeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit d358867

Please sign in to comment.