From d2a70a432301e76d362038f7e45ca4603fd3f010 Mon Sep 17 00:00:00 2001 From: Paul Abel <128620221+pdabelf5@users.noreply.github.com> Date: Thu, 14 Nov 2024 10:41:44 +0000 Subject: [PATCH] remove unused functions (#6806) --- internal/configs/config_params.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/internal/configs/config_params.go b/internal/configs/config_params.go index af96054f48..a1bd883d6b 100644 --- a/internal/configs/config_params.go +++ b/internal/configs/config_params.go @@ -5,7 +5,6 @@ import ( "github.com/nginxinc/kubernetes-ingress/internal/configs/version2" "github.com/nginxinc/kubernetes-ingress/internal/nginx" - conf_v1 "github.com/nginxinc/kubernetes-ingress/pkg/apis/configuration/v1" ) // ConfigParams holds NGINX configuration parameters that affect the main NGINX config @@ -220,19 +219,3 @@ func NewDefaultConfigParams(ctx context.Context, isPlus bool) *ConfigParams { LimitReqRejectCode: 429, } } - -// NewDefaultGlobalConfigParams creates a GlobalConfigParams with default values. -func NewDefaultGlobalConfigParams() *GlobalConfigParams { - return &GlobalConfigParams{Listeners: map[string]Listener{}} -} - -// NewGlobalConfigParamsWithTLSPassthrough creates new GlobalConfigParams with enabled TLS Passthrough listener. -func NewGlobalConfigParamsWithTLSPassthrough() *GlobalConfigParams { - return &GlobalConfigParams{ - Listeners: map[string]Listener{ - conf_v1.TLSPassthroughListenerName: { - Protocol: conf_v1.TLSPassthroughListenerProtocol, - }, - }, - } -}