CloudWatch: Remove unused handleGetRegions and regionCache (#83333)

* remove unused handleGetRegions and regionCache

* cleanup
This commit is contained in:
Isabella Siu
2024-02-26 09:35:59 -05:00
committed by GitHub
parent 617adb137c
commit 7f8a87458f
4 changed files with 3 additions and 178 deletions
-14
View File
@@ -119,20 +119,6 @@ func (c *fakeCWAnnotationsClient) DescribeAlarms(params *cloudwatch.DescribeAlar
return c.describeAlarmsOutput, nil
}
type mockEC2Client struct {
mock.Mock
}
func (c *mockEC2Client) DescribeRegionsWithContext(ctx aws.Context, in *ec2.DescribeRegionsInput, option ...request.Option) (*ec2.DescribeRegionsOutput, error) {
args := c.Called(in)
return args.Get(0).(*ec2.DescribeRegionsOutput), args.Error(1)
}
func (c *mockEC2Client) DescribeInstancesPagesWithContext(ctx aws.Context, in *ec2.DescribeInstancesInput, fn func(*ec2.DescribeInstancesOutput, bool) bool, opts ...request.Option) error {
args := c.Called(in, fn)
return args.Error(0)
}
// Please use mockEC2Client above, we are slowly migrating towards using testify's mocks only
type oldEC2Client struct {
ec2iface.EC2API