Skip to content

Commit 84ce397

Browse files
committed
no need for this func
1 parent 02a83dc commit 84ce397

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

tests/integration/godog/k8sclient/watcher_store.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ package k8sclient
1111

1212
import (
1313
"context"
14-
"errors"
1514
"fmt"
1615
"sync"
1716

@@ -185,14 +184,6 @@ func (s *WatcherStore) keyFor(obj runtime.Object) (string, error) {
185184
return fmt.Sprintf("%s/%s", ns, accessor.GetName()), nil
186185
}
187186

188-
func (s *WatcherStore) keyForName(crdName string) (string, error) {
189-
if crdName == "" {
190-
return "", errors.New("no crd name provided")
191-
}
192-
193-
return fmt.Sprintf("%s/%s", s.namespace, crdName), nil
194-
}
195-
196187
func (s *WatcherStore) Put(obj runtime.Object) {
197188
if obj == nil {
198189
return

0 commit comments

Comments
 (0)