Skip to content

Commit 0c4c186

Browse files
committed
remove unused method
1 parent 584e3fb commit 0c4c186

File tree

10 files changed

+2
-32
lines changed

10 files changed

+2
-32
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package routeutils

pkg/gateway/routeutils/grpc.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ func convertGRPCRouteRule(rule *gwv1.GRPCRouteRule, backends []Backend, listener
4040
}
4141
}
4242

43-
func (t *convertedGRPCRouteRule) GetSectionName() *gwv1.SectionName {
44-
return t.rule.Name
45-
}
46-
4743
func (t *convertedGRPCRouteRule) GetBackends() []Backend {
4844
return t.backends
4945
}

pkg/gateway/routeutils/http.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ func (t *convertedHTTPRouteRule) GetRawRouteRule() interface{} {
4040
return t.rule
4141
}
4242

43-
func (t *convertedHTTPRouteRule) GetSectionName() *gwv1.SectionName {
44-
return t.rule.Name
45-
}
46-
4743
func (t *convertedHTTPRouteRule) GetBackends() []Backend {
4844
return t.backends
4945
}

pkg/gateway/routeutils/mock_route.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ func (m *MockRule) GetRawRouteRule() interface{} {
1717
return m.RawRule
1818
}
1919

20-
func (m *MockRule) GetSectionName() *gwv1.SectionName {
21-
//TODO implement me
22-
panic("implement me")
23-
}
24-
2520
func (m *MockRule) GetBackends() []Backend {
2621
return m.BackendRefs
2722
}

pkg/gateway/routeutils/route_rule.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@ package routeutils
22

33
import (
44
elbv2gw "sigs.k8s.io/aws-load-balancer-controller/apis/gateway/v1beta1"
5-
gwv1 "sigs.k8s.io/gateway-api/apis/v1"
65
)
76

87
// RouteRule is a type agnostic representation of Routing Rules.
98
type RouteRule interface {
109
GetRawRouteRule() interface{}
11-
GetSectionName() *gwv1.SectionName
1210
GetBackends() []Backend
1311
GetListenerRuleConfig() *elbv2gw.ListenerRuleConfiguration
1412
}

pkg/gateway/routeutils/route_rule_condition_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -953,11 +953,6 @@ func (m *mockRouteRule) GetRawRouteRule() interface{} {
953953
panic("implement me")
954954
}
955955

956-
func (m *mockRouteRule) GetSectionName() *gwv1.SectionName {
957-
//TODO implement me
958-
panic("implement me")
959-
}
960-
961956
func (m *mockRouteRule) GetBackends() []Backend {
962957
//TODO implement me
963958
panic("implement me")

pkg/gateway/routeutils/tcp.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ func (t *convertedTCPRouteRule) GetRawRouteRule() interface{} {
4141
return t.rule
4242
}
4343

44-
func (t *convertedTCPRouteRule) GetSectionName() *gwv1.SectionName {
45-
return t.rule.Name
46-
}
47-
4844
func (t *convertedTCPRouteRule) GetBackends() []Backend {
4945
return t.backends
5046
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package routeutils

pkg/gateway/routeutils/tls.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ func (t *convertedTLSRouteRule) GetRawRouteRule() interface{} {
4141
return t.rule
4242
}
4343

44-
func (t *convertedTLSRouteRule) GetSectionName() *gwv1.SectionName {
45-
return t.rule.Name
46-
}
47-
4844
func (t *convertedTLSRouteRule) GetBackends() []Backend {
4945
return t.backends
5046
}

pkg/gateway/routeutils/udp.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ func (t *convertedUDPRouteRule) GetRawRouteRule() interface{} {
4141
return t.rule
4242
}
4343

44-
func (t *convertedUDPRouteRule) GetSectionName() *gwv1.SectionName {
45-
return t.rule.Name
46-
}
47-
4844
func (t *convertedUDPRouteRule) GetBackends() []Backend {
4945
return t.backends
5046
}

0 commit comments

Comments
 (0)