Skip to content

Commit d2a70a4

Browse files
authored
remove unused functions (#6806)
1 parent 426716b commit d2a70a4

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

internal/configs/config_params.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55

66
"github.com/nginxinc/kubernetes-ingress/internal/configs/version2"
77
"github.com/nginxinc/kubernetes-ingress/internal/nginx"
8-
conf_v1 "github.com/nginxinc/kubernetes-ingress/pkg/apis/configuration/v1"
98
)
109

1110
// ConfigParams holds NGINX configuration parameters that affect the main NGINX config
@@ -220,19 +219,3 @@ func NewDefaultConfigParams(ctx context.Context, isPlus bool) *ConfigParams {
220219
LimitReqRejectCode: 429,
221220
}
222221
}
223-
224-
// NewDefaultGlobalConfigParams creates a GlobalConfigParams with default values.
225-
func NewDefaultGlobalConfigParams() *GlobalConfigParams {
226-
return &GlobalConfigParams{Listeners: map[string]Listener{}}
227-
}
228-
229-
// NewGlobalConfigParamsWithTLSPassthrough creates new GlobalConfigParams with enabled TLS Passthrough listener.
230-
func NewGlobalConfigParamsWithTLSPassthrough() *GlobalConfigParams {
231-
return &GlobalConfigParams{
232-
Listeners: map[string]Listener{
233-
conf_v1.TLSPassthroughListenerName: {
234-
Protocol: conf_v1.TLSPassthroughListenerProtocol,
235-
},
236-
},
237-
}
238-
}

0 commit comments

Comments
 (0)