[2/3] openvpn-authenticator: Drop some dead code
Commit Message
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
config/ovpn/openvpn-authenticator | 12 ------------
1 file changed, 12 deletions(-)
Comments
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
On 06/12/2022 11:01, Michael Tremer wrote:
> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
> ---
> config/ovpn/openvpn-authenticator | 12 ------------
> 1 file changed, 12 deletions(-)
>
> diff --git a/config/ovpn/openvpn-authenticator b/config/ovpn/openvpn-authenticator
> index 5d9348d7e..c22e08f0a 100644
> --- a/config/ovpn/openvpn-authenticator
> +++ b/config/ovpn/openvpn-authenticator
> @@ -97,18 +97,6 @@ class OpenVPNAuthenticator(object):
> # Send the command
> self._write_line(command)
>
> - return # XXX Code below doesn't work
> -
> - # Read response
> - response = self._read_line()
> -
> - # Handle response
> - if not response.startswith("SUCCESS:"):
> - log.error("Command '%s' returned an error:" % command)
> - log.error(" %s" % response)
> -
> - return response
> -
> def run(self):
> # Connect to socket
> self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
@@ -97,18 +97,6 @@ class OpenVPNAuthenticator(object):
# Send the command
self._write_line(command)
- return # XXX Code below doesn't work
-
- # Read response
- response = self._read_line()
-
- # Handle response
- if not response.startswith("SUCCESS:"):
- log.error("Command '%s' returned an error:" % command)
- log.error(" %s" % response)
-
- return response
-
def run(self):
# Connect to socket
self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)