CloudWatch: Remove unused handleGetRegions and regionCache (#83333)
* remove unused handleGetRegions and regionCache * cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user