[PATCH] Remove dead code from win32/win32sck.c
Jan Dubois [Mon, 25 Jun 2007 17:13:04 +0000 (10:13 -0700)]
From: "Jan Dubois" <jand@activestate.com>
Date: Mon, 25 Jun 2007 17:13:04 -0700
Message-ID: <02bb01c7b786$c42099c0$4c61cd40$@com>

Subject: RE: [PATCH] Remove dead code from win32/win32sck.c
From: "Jan Dubois" <jand@activestate.com>
Date: Mon, 25 Jun 2007 17:26:15 -0700
Message-ID: <02c801c7b788$9bf7ebe0$d3e7c3a0$@com>

p4raw-id: //depot/perl@31469

win32/win32sck.c
win32/wincesck.c

index 8656c0b..26bef5e 100644 (file)
 #      define TO_SOCKET(x)     (x)
 #endif /* USE_SOCKETS_AS_HANDLES */
 
-#if defined(USE_ITHREADS)
 #define StartSockets() \
     STMT_START {                                       \
        if (!wsock_started)                             \
            start_sockets();                            \
-       set_socktype();                                 \
     } STMT_END
-#else
-#define StartSockets() \
-    STMT_START {                                       \
-       if (!wsock_started) {                           \
-           start_sockets();                            \
-           set_socktype();                             \
-       }                                               \
-    } STMT_END
-#endif
 
 #define SOCKET_TEST(x, y) \
     STMT_START {                                       \
@@ -98,12 +87,6 @@ start_sockets(void)
     wsock_started = 1;
 }
 
-void
-set_socktype(void)
-{
-}
-
-
 #ifndef USE_SOCKETS_AS_HANDLES
 #undef fdopen
 FILE *
index 76d56fc..067b257 100644 (file)
@@ -59,10 +59,8 @@ XCE_EXPORT struct protoent *xcegetprotobynumber(int number);
 
 #define StartSockets() \
     STMT_START {                                       \
-       if (!wsock_started) {                           \
+       if (!wsock_started)                             \
            start_sockets();                            \
-           set_socktype();                             \
-       }                                               \
     } STMT_END
 
 #define SOCKET_TEST(x, y) \
@@ -109,11 +107,6 @@ start_sockets(void)
     wsock_started = 1;
 }
 
-void
-set_socktype(void)
-{
-}
-
 u_long
 win32_htonl(u_long hostlong)
 {