remove unuse code in cloudprovider

This commit is contained in:
stewart-yu
2017-12-17 17:21:14 +08:00
parent cab439b20f
commit 2ab0e3217e
3 changed files with 0 additions and 38 deletions

View File

@@ -60,18 +60,6 @@ func IsCloudProvider(name string) bool {
return found
}
// CloudProviders returns the name of all registered cloud providers in a
// string slice
func CloudProviders() []string {
names := []string{}
providersMutex.Lock()
defer providersMutex.Unlock()
for name := range providers {
names = append(names, name)
}
return names
}
// GetCloudProvider creates an instance of the named cloud provider, or nil if
// the name is unknown. The error return is only used if the named provider
// was known but failed to initialize. The config parameter specifies the