build tree as C++, remove unreferenced local variable in server.cpp