Merge pull request #53786 from xiangpengzhao/remove-func

Automatic merge from submit-queue (batch tested with PRs 53776, 53786, 53352, 51567). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Clean up unused func checkKnownProxyMode

**What this PR does / why we need it**:
Minor cleanup.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
This commit is contained in:
Kubernetes Submit Queue 2017-10-12 19:27:34 -07:00 committed by GitHub
commit a9264728d7

View File

@ -82,15 +82,6 @@ const (
proxyModeKernelspace = "kernelspace" 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. // Options contains everything necessary to create and run a proxy server.
type Options struct { type Options struct {
// ConfigFile is the location of the proxy server's configuration file. // ConfigFile is the location of the proxy server's configuration file.