diff --git a/cmd/kube-proxy/app/server.go b/cmd/kube-proxy/app/server.go index 2afeb633f72..78cfc2fe0b0 100644 --- a/cmd/kube-proxy/app/server.go +++ b/cmd/kube-proxy/app/server.go @@ -82,15 +82,6 @@ const ( proxyModeKernelspace = "kernelspace" ) -// checkKnownProxyMode returns true if proxyMode is valid. -func checkKnownProxyMode(proxyMode string) bool { - switch proxyMode { - case "", proxyModeUserspace, proxyModeIPTables, proxyModeIPVS, proxyModeKernelspace: - return true - } - return false -} - // Options contains everything necessary to create and run a proxy server. type Options struct { // ConfigFile is the location of the proxy server's configuration file.