Skip to content

Commit 39f52de

Browse files
committed
removed unused func
1 parent 66d4905 commit 39f52de

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

pkg/aws/albelbv2/elbv2.go

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ type ELBV2API interface {
3838
UpdateTags(arn *string, old util.ELBv2Tags, new util.ELBv2Tags) error
3939
UpdateAttributes(arn *string, new []*elbv2.LoadBalancerAttribute) error
4040
RemoveTargetGroup(arn *string) error
41-
DescribeTagsForArn(arn *string) (util.ELBv2Tags, error)
4241
DescribeTargetGroupTargetsForArn(arn *string, targets ...[]*elbv2.TargetDescription) (util.AWSStringSlice, error)
4342
RemoveListener(arn *string) error
4443
DescribeListenersForLoadBalancer(loadBalancerArn *string) ([]*elbv2.Listener, error)
@@ -204,24 +203,6 @@ func (e *ELBV2) DescribeListenersForLoadBalancer(loadBalancerArn *string) ([]*el
204203
return listeners, nil
205204
}
206205

207-
// DescribeTagsForArn looks up all tags for a given ARN.
208-
func (e *ELBV2) DescribeTagsForArn(arn *string) (util.ELBv2Tags, error) {
209-
describeTags, err := e.DescribeTags(&elbv2.DescribeTagsInput{
210-
ResourceArns: []*string{arn},
211-
})
212-
213-
var tags []*elbv2.Tag
214-
if len(describeTags.TagDescriptions) == 0 {
215-
return tags, err
216-
}
217-
218-
for _, tag := range describeTags.TagDescriptions[0].Tags {
219-
tags = append(tags, &elbv2.Tag{Key: tag.Key, Value: tag.Value})
220-
}
221-
222-
return tags, err
223-
}
224-
225206
// DescribeTargetGroupTargetsForArn looks up target group targets by an ARN.
226207
func (e *ELBV2) DescribeTargetGroupTargetsForArn(arn *string, targets ...[]*elbv2.TargetDescription) (result util.AWSStringSlice, err error) {
227208
var targetHealth *elbv2.DescribeTargetHealthOutput

0 commit comments

Comments
 (0)