Removed unused code from sockets library