C++/TCPSocket: Remove some dead code