Skip to content

Commit

Permalink
Remove unused WalkNodes function
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto Bruggemann committed Jan 3, 2018
1 parent ccfcc61 commit 2c60d50
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
11 changes: 0 additions & 11 deletions probe/kubernetes/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ type Client interface {
WalkStatefulSets(f func(StatefulSet) error) error
WalkCronJobs(f func(CronJob) error) error
WalkReplicationControllers(f func(ReplicationController) error) error
WalkNodes(f func(*apiv1.Node) error) error
WalkNamespaces(f func(NamespaceResource) error) error

WatchPods(f func(Event, Pod))
Expand Down Expand Up @@ -319,16 +318,6 @@ func (c *client) WalkCronJobs(f func(CronJob) error) error {
return nil
}

func (c *client) WalkNodes(f func(*apiv1.Node) error) error {
for _, m := range c.nodeStore.List() {
node := m.(*apiv1.Node)
if err := f(node); err != nil {
return err
}
}
return nil
}

func (c *client) WalkNamespaces(f func(NamespaceResource) error) error {
for _, m := range c.namespaceStore.List() {
namespace := m.(*apiv1.Namespace)
Expand Down
3 changes: 0 additions & 3 deletions probe/kubernetes/reporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,6 @@ func (c *mockClient) WalkReplicaSets(f func(kubernetes.ReplicaSet) error) error
func (c *mockClient) WalkReplicationControllers(f func(kubernetes.ReplicationController) error) error {
return nil
}
func (*mockClient) WalkNodes(f func(*apiv1.Node) error) error {
return nil
}
func (c *mockClient) WalkNamespaces(f func(kubernetes.NamespaceResource) error) error {
return nil
}
Expand Down

0 comments on commit 2c60d50

Please sign in to comment.