From 6e0878fbcc12ba6dd534d68165f7074274644986 Mon Sep 17 00:00:00 2001 From: Ted Yu Date: Wed, 4 Sep 2019 10:36:24 +0800 Subject: [PATCH] Remove unused func IsProxyLocked --- pkg/proxy/userspace/proxier.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/proxy/userspace/proxier.go b/pkg/proxy/userspace/proxier.go index 9e07f0f6073..5639df3527c 100644 --- a/pkg/proxy/userspace/proxier.go +++ b/pkg/proxy/userspace/proxier.go @@ -172,11 +172,6 @@ var ( ErrProxyOnLocalhost = fmt.Errorf("cannot proxy on localhost") ) -// IsProxyLocked returns true if the proxy could not acquire the lock on iptables. -func IsProxyLocked(err error) bool { - return strings.Contains(err.Error(), "holding the xtables lock") -} - // NewProxier returns a new Proxier given a LoadBalancer and an address on // which to listen. Because of the iptables logic, It is assumed that there // is only a single Proxier active on a machine. An error will be returned if