From 46d3fa052dc087efa39585d3a9d582ee49a697f5 Mon Sep 17 00:00:00 2001 From: hzxuzhonghu Date: Sun, 10 Dec 2017 15:39:31 +0800 Subject: [PATCH] remove dead code --- .../src/k8s.io/client-go/discovery/discovery_client.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/staging/src/k8s.io/client-go/discovery/discovery_client.go b/staging/src/k8s.io/client-go/discovery/discovery_client.go index 26319f49468..5490fb12ca8 100644 --- a/staging/src/k8s.io/client-go/discovery/discovery_client.go +++ b/staging/src/k8s.io/client-go/discovery/discovery_client.go @@ -395,15 +395,6 @@ func NewDiscoveryClient(c restclient.Interface) *DiscoveryClient { return &DiscoveryClient{restClient: c, LegacyPrefix: "/api"} } -func stringDoesntExistIn(str string, slice []string) bool { - for _, s := range slice { - if s == str { - return false - } - } - return true -} - // RESTClient returns a RESTClient that is used to communicate // with API server by this client implementation. func (c *DiscoveryClient) RESTClient() restclient.Interface {