remove unused infoboard packet

This commit is contained in:
Andy Newjack 2020-05-03 13:54:14 -03:00
parent d421b30a88
commit 5393baeca7
2 changed files with 1 additions and 2 deletions

View File

@ -18,7 +18,6 @@ pub fn player_chat(id: ClientId,
}
pub fn request_infoboard(id: ClientId,
_request_infoboard: &ViewInfoboardRequest,
client_location: &ClientLocation,
clients: &Clients)
-> Box<dyn Iterator<Item = (ClientId, SendShipPacket)> + Send> {

View File

@ -306,7 +306,7 @@ impl<EG: EntityGateway> ServerState for ShipServerState<EG> {
handler::settings::update_config(id, pkt, &mut self.clients, &mut self.entity_gateway)
},
RecvShipPacket::ViewInfoboardRequest(pkt) => {
handler::communication::request_infoboard(id, pkt, &self.client_location, &self.clients)
handler::communication::request_infoboard(id, &self.client_location, &self.clients)
},
RecvShipPacket::WriteInfoboard(pkt) => {
handler::communication::write_infoboard(id, pkt, &mut self.clients, &mut self.entity_gateway)