Remove some leftover code.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 7 Apr 2013 20:48:13 +0000 (22:48 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 7 Apr 2013 20:48:13 +0000 (22:48 +0200)
cubemap.cpp

index d5cfa010a1443782c37614903ae8fdeed905d7e6..9b98ebab999fe6e0818528305df992c92b378f7e 100644 (file)
@@ -79,7 +79,6 @@ int create_server_socket(int port)
 void *acceptor_thread_run(void *arg)
 {
        int server_sock = int(intptr_t(arg));
 void *acceptor_thread_run(void *arg)
 {
        int server_sock = int(intptr_t(arg));
-       int num_accepted = 0;
        for ( ;; ) {
                sockaddr_in6 addr;
                socklen_t addrlen = sizeof(addr);
        for ( ;; ) {
                sockaddr_in6 addr;
                socklen_t addrlen = sizeof(addr);
@@ -103,7 +102,6 @@ void *acceptor_thread_run(void *arg)
 
                // Pick a server, round-robin, and hand over the socket to it.
                servers->add_client(sock);
 
                // Pick a server, round-robin, and hand over the socket to it.
                servers->add_client(sock);
-               ++num_accepted; 
        }
 }
 
        }
 }