From 8c49d8cf31e59a03d47719c12797f14a18e8e181 Mon Sep 17 00:00:00 2001 From: Dana Hoffman Date: Tue, 5 Nov 2019 11:16:07 -0800 Subject: [PATCH] rm toBool --- third_party/terraform/utils/test_utils.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/third_party/terraform/utils/test_utils.go b/third_party/terraform/utils/test_utils.go index 0856e7e8efff..3a9b611ad37b 100644 --- a/third_party/terraform/utils/test_utils.go +++ b/third_party/terraform/utils/test_utils.go @@ -3,7 +3,6 @@ package google import ( "fmt" "reflect" - "strconv" "github.com/hashicorp/terraform-plugin-sdk/terraform" ) @@ -80,14 +79,6 @@ func (d *ResourceDiffMock) Clear(key string) error { return nil } -func toBool(attribute string) (bool, error) { - // Handle the case where an unset value defaults to false - if attribute == "" { - return false, nil - } - return strconv.ParseBool(attribute) -} - func checkDataSourceStateMatchesResourceState(dataSourceName, resourceName string) func(*terraform.State) error { return checkDataSourceStateMatchesResourceStateWithIgnores(dataSourceName, resourceName, map[string]struct{}{}) }