Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
alpe committed Jan 31, 2025
1 parent 5ed53a4 commit e4ff2f0
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions store/v2/root/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ type Builder interface {
RegisterKey(string)
// Get returns the Store. Build should be called before calling Get or the result will be nil.
Get() store.RootStore
// GetStoreKeys returns the store keys that have been registered.
GetStoreKeys() []string
}

var _ Builder = (*builder)(nil)
Expand Down Expand Up @@ -100,11 +98,3 @@ func (sb *builder) Get() store.RootStore {
func (sb *builder) RegisterKey(key string) {
sb.storeKeys[key] = struct{}{}
}

func (sb *builder) GetStoreKeys() []string {
keys := make([]string, 0, len(sb.storeKeys))
for key := range sb.storeKeys {
keys = append(keys, key)
}
return keys
}

0 comments on commit e4ff2f0

Please sign in to comment.