From 477d95e66bd7fd9a5d5f5b3a74cc6140a764444e Mon Sep 17 00:00:00 2001 From: Brian Flad Date: Thu, 6 Aug 2020 16:44:55 -0400 Subject: [PATCH] tests/resource/aws_route53_zone_association: Remove unused testAccCheckRoute53ZoneAssociationDisappears function --- ...ource_aws_route53_zone_association_test.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/aws/resource_aws_route53_zone_association_test.go b/aws/resource_aws_route53_zone_association_test.go index 554047099dee..abbca7d70210 100644 --- a/aws/resource_aws_route53_zone_association_test.go +++ b/aws/resource_aws_route53_zone_association_test.go @@ -7,9 +7,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/terraform" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/route53" ) func TestAccAWSRoute53ZoneAssociation_basic(t *testing.T) { @@ -222,22 +219,6 @@ func testAccCheckRoute53ZoneAssociationExists(resourceName string) resource.Test } } -func testAccCheckRoute53ZoneAssociationDisappears(zone *route53.GetHostedZoneOutput, vpc *route53.VPC) resource.TestCheckFunc { - return func(s *terraform.State) error { - conn := testAccProvider.Meta().(*AWSClient).r53conn - - input := &route53.DisassociateVPCFromHostedZoneInput{ - HostedZoneId: zone.HostedZone.Id, - VPC: vpc, - Comment: aws.String("Managed by Terraform"), - } - - _, err := conn.DisassociateVPCFromHostedZone(input) - - return err - } -} - const testAccRoute53ZoneAssociationConfig = ` resource "aws_vpc" "foo" { cidr_block = "10.6.0.0/16"