[server] Remove unused structures and a method prototype.