Remove an unused function and include from client.cpp