Explorar o código

Remove unused code.

Mariano Cano %!s(int64=5) %!d(string=hai) anos
pai
achega
500b540406
Modificáronse 1 ficheiros con 0 adicións e 15 borrados
  1. 0 15
      kms/azurekms/key_vault_test.go

+ 0 - 15
kms/azurekms/key_vault_test.go

@@ -42,21 +42,6 @@ func mockClient(t *testing.T) *mock.KeyVaultClient {
 	return mock.NewKeyVaultClient(ctrl)
 }
 
-func mockCreateClient(t *testing.T) *mock.KeyVaultClient {
-	t.Helper()
-	ctrl := gomock.NewController(t)
-	client := mock.NewKeyVaultClient(ctrl)
-	old := createClient
-	createClient = func(ctx context.Context, opts apiv1.Options) (KeyVaultClient, error) {
-		return client, nil
-	}
-	t.Cleanup(func() {
-		createClient = old
-		ctrl.Finish()
-	})
-	return client
-}
-
 func createJWK(t *testing.T, pub crypto.PublicKey) *keyvault.JSONWebKey {
 	t.Helper()
 	b, err := json.Marshal(&jose.JSONWebKey{