From 5efc3ea3153aab7b5727c6171948b810b78d9385 Mon Sep 17 00:00:00 2001 From: mabhi Date: Thu, 5 Oct 2023 12:15:15 +0530 Subject: [PATCH] Removed unused code comments Signed-off-by: mabhi --- go.mod | 2 +- pkg/blockstorage/azure/client.go | 20 -------------------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/go.mod b/go.mod index 882869516e4..7977cf6f262 100644 --- a/go.mod +++ b/go.mod @@ -190,7 +190,7 @@ require ( ) -require github.com/Azure/go-autorest/autorest v0.11.27 +require github.com/Azure/go-autorest/autorest v0.11.27 // indirect require ( github.com/Azure/go-autorest/autorest/adal v0.9.18 // indirect diff --git a/pkg/blockstorage/azure/client.go b/pkg/blockstorage/azure/client.go index 921f1032228..50880b53f8c 100644 --- a/pkg/blockstorage/azure/client.go +++ b/pkg/blockstorage/azure/client.go @@ -74,27 +74,7 @@ func NewClient(ctx context.Context, config map[string]string) (*Client, error) { return nil, errors.Wrap(err, "Cannot get subscriptionID from instance metadata") } } - /* - if id, ok := config[blockstorage.AzureCloudEnvironmentID]; !ok || id == "" { - config[blockstorage.AzureCloudEnvironmentID] = azure.PublicCloud.Name - } - */ - /* - env, err := azure.EnvironmentFromName(config[blockstorage.AzureCloudEnvironmentID]) - if err != nil { - return nil, errors.Wrap(err, "Failed to fetch the cloud environment.") - } - authorizer, err := getAuthorizer(env, config) - if err != nil { - return nil, err - } - - _, ok = config[blockstorage.AzureResurceMgrEndpoint] - if !ok { - config[blockstorage.AzureResurceMgrEndpoint] = env.ResourceManagerEndpoint - } - */ cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { return nil, err