Skip to content

Commit

Permalink
SQUASH: get rid of unused ByNameGetterFunc
Browse files Browse the repository at this point in the history
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
  • Loading branch information
sttts committed Apr 23, 2024
1 parent 25734fe commit ca692b1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions pkg/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ type AwareRunnable interface {
Disengage(context.Context, Cluster) error
}

// ByNameGetterFunc is a function that returns a cluster for a given identifying cluster name.
type ByNameGetterFunc func(ctx context.Context, clusterName string) (Cluster, error)

// Cluster provides various methods to interact with a cluster.
type Cluster interface {
// Name returns the name of the cluster. It identifies the cluster in the
Expand Down
1 change: 0 additions & 1 deletion pkg/manager/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ const (

var _ Runnable = &controllerManager{}
var _ Manager = &controllerManager{}
var _ cluster.ByNameGetterFunc = (&controllerManager{}).GetCluster

type engagedCluster struct {
cluster.Cluster
Expand Down

0 comments on commit ca692b1

Please sign in to comment.