summaryrefslogtreecommitdiff
path: root/agent
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-07-09 17:55:08 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2020-07-09 18:05:23 +0530
commit5b29ca210560cc785a659e679f114057bcf53753 (patch)
tree0b5da9c740bd7baf503463343d59e3ef80958dbe /agent
parent80dc194ff9bc6c780a27696dfd537130f5e7843e (diff)
downloadlibnice-5b29ca210560cc785a659e679f114057bcf53753.tar.gz
interfaces: Remove unused win32 code
Diffstat (limited to 'agent')
-rw-r--r--agent/interfaces.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/agent/interfaces.c b/agent/interfaces.c
index 309ca65..9a5300e 100644
--- a/agent/interfaces.c
+++ b/agent/interfaces.c
@@ -497,42 +497,6 @@ nice_interfaces_get_ip_for_interface (gchar *interface_name)
#define MIB_IPADDR_DELETED 0x0040
#endif
-#if 0
-static gboolean started_wsa_engine = FALSE;
-
-/*
- * private function that initializes the WinSock engine and
- * returns a prebuilt socket
- */
-SOCKET nice_interfaces_get_WSA_socket ()
-{
- WORD wVersionRequested;
- WSADATA wsaData;
- int err;
- SOCKET sock;
-
- if (started_wsa_engine == FALSE) {
- wVersionRequested = MAKEWORD ( 2, 0 );
-
- err = WSAStartup ( wVersionRequested, &wsaData );
- if ( err != 0 ) {
- nice_debug ("Error : Could not start the winsocket engine");
- return INVALID_SOCKET;
- }
- started_wsa_engine = TRUE;
- }
-
-
- if ((sock = socket (AF_INET, SOCK_DGRAM, 0)) == INVALID_SOCKET) {
- nice_debug ("Error : Could not open socket to retrieve interface list,"
- " error no : %d", WSAGetLastError ());
- return INVALID_SOCKET;
- }
-
- return sock;
-}
-#endif
-
GList * nice_interfaces_get_local_interfaces (void)
{
ULONG size = 0;