From f706d774b4dfd4c4254c3cf5c29ec28eb9313568 Mon Sep 17 00:00:00 2001 From: Salvador Fandino Date: Tue, 2 Jun 2015 15:35:50 +0200 Subject: remove now unused function ParseListenOption --- nxcomp/Loop.cpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/nxcomp/Loop.cpp b/nxcomp/Loop.cpp index 20114afbf..f051130dd 100644 --- a/nxcomp/Loop.cpp +++ b/nxcomp/Loop.cpp @@ -523,14 +523,6 @@ static int ParseHostOption(const char *opt, char *host, int &port); static int ParseFontPath(char *path); -// -// Determine the interface where to listen for -// the remote proxy connection or the local -// forwarder. -// - -static int ParseListenOption(int &interface); - // // Translate a pack method id in a literal. // @@ -13476,18 +13468,6 @@ ParseFontPathError: return -1; } -int ParseListenOption(int &address) -{ - if (loopbackBind || (control->ProxyMode == proxy_server)) { - address = htonl(INADDR_LOOPBACK); - } - else - { - address = htonl(INADDR_ANY); - } - return 1; -} - int OpenLogFile(char *name, ostream *&stream) { if (name == NULL || *name == '\0') -- cgit v1.2.3