Skip to content

Commit ca692b1

Browse files
committed
SQUASH: get rid of unused ByNameGetterFunc
Signed-off-by: Dr. Stefan Schimanski <[email protected]>
1 parent 25734fe commit ca692b1

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

pkg/cluster/cluster.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ type AwareRunnable interface {
5757
Disengage(context.Context, Cluster) error
5858
}
5959

60-
// ByNameGetterFunc is a function that returns a cluster for a given identifying cluster name.
61-
type ByNameGetterFunc func(ctx context.Context, clusterName string) (Cluster, error)
62-
6360
// Cluster provides various methods to interact with a cluster.
6461
type Cluster interface {
6562
// Name returns the name of the cluster. It identifies the cluster in the

pkg/manager/internal.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ const (
6363

6464
var _ Runnable = &controllerManager{}
6565
var _ Manager = &controllerManager{}
66-
var _ cluster.ByNameGetterFunc = (&controllerManager{}).GetCluster
6766

6867
type engagedCluster struct {
6968
cluster.Cluster

0 commit comments

Comments
 (0)