From 5393baeca7ac2fbf11ca71c7fa3975356620fc2b Mon Sep 17 00:00:00 2001 From: Andy Newjack Date: Sun, 3 May 2020 13:54:14 -0300 Subject: [PATCH] remove unused infoboard packet --- src/ship/packet/handler/communication.rs | 1 - src/ship/ship.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ship/packet/handler/communication.rs b/src/ship/packet/handler/communication.rs index 57e519d..57a9a79 100644 --- a/src/ship/packet/handler/communication.rs +++ b/src/ship/packet/handler/communication.rs @@ -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 + Send> { diff --git a/src/ship/ship.rs b/src/ship/ship.rs index 71ebbf5..dff63b9 100644 --- a/src/ship/ship.rs +++ b/src/ship/ship.rs @@ -306,7 +306,7 @@ impl ServerState for ShipServerState { 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)