Skip to content

Commit

Permalink
Clean up unused var (istio#45078)
Browse files Browse the repository at this point in the history
  • Loading branch information
hzxuzhonghu authored May 24, 2023
1 parent 9a9d1c8 commit 73a2283
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions pilot/pkg/networking/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ const (
InboundPassthroughClusterIpv4 = "InboundPassthroughClusterIpv4"
InboundPassthroughClusterIpv6 = "InboundPassthroughClusterIpv6"

// SniClusterFilter is the name of the sni_cluster envoy filter
SniClusterFilter = "envoy.filters.network.sni_cluster"

// IstioMetadataKey is the key under which metadata is added to a route or cluster
// regarding the virtual service or destination rule used for each
IstioMetadataKey = "istio"
Expand Down Expand Up @@ -212,11 +209,6 @@ func BuildAdditionalAddresses(extrAddresses []string, listenPort uint32, node *m
return additionalAddresses
}

// BuildAddress returns a SocketAddress with the given ip and port or uds.
func BuildInternalAddress(name string) *core.Address {
return BuildInternalAddressWithIdentifier(name, "")
}

func BuildNetworkAddress(bind string, port uint32, transport istionetworking.TransportProtocol) *core.Address {
if port == 0 {
return nil
Expand Down Expand Up @@ -259,12 +251,6 @@ func IsIstioVersionGE117(version *model.IstioVersion) bool {
version.Compare(&model.IstioVersion{Major: 1, Minor: 17, Patch: -1}) >= 0
}

// IsIstioVersionGE118 checks whether the given Istio version is greater than or equals 1.18.
func IsIstioVersionGE118(version *model.IstioVersion) bool {
return version == nil ||
version.Compare(&model.IstioVersion{Major: 1, Minor: 18, Patch: -1}) >= 0
}

func IsProtocolSniffingEnabledForPort(port *model.Port) bool {
return features.EnableProtocolSniffingForOutbound && port.Protocol.IsUnsupported()
}
Expand Down

0 comments on commit 73a2283

Please sign in to comment.