From 4dc6dd682322acd250fcbf5c2f7950a71dc0f5af Mon Sep 17 00:00:00 2001 From: Zhenhua Li Date: Wed, 13 Nov 2024 12:27:10 -0800 Subject: [PATCH] Remove unused id list from ImportIdFormatsFromResource function (#12321) --- mmv1/api/resource.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mmv1/api/resource.go b/mmv1/api/resource.go index 8cc2743787b4..3edcd10210c1 100644 --- a/mmv1/api/resource.go +++ b/mmv1/api/resource.go @@ -1007,11 +1007,6 @@ func (r Resource) TerraformName() string { } func (r Resource) ImportIdFormatsFromResource() []string { - - var ids []string - for _, id := range r.GetIdentity() { - ids = append(ids, google.Underscore(id.Name)) - } return ImportIdFormats(r.ImportFormat, r.Identity, r.BaseUrl) }