From 0a102a93716d85d7a1c3ef280761d615cfdd738b Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Thu, 3 Feb 2022 20:46:40 +0100 Subject: remove send_info method --- planetwars-matchrunner/src/match_context.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'planetwars-matchrunner/src/match_context.rs') diff --git a/planetwars-matchrunner/src/match_context.rs b/planetwars-matchrunner/src/match_context.rs index 466da13..8161ed9 100644 --- a/planetwars-matchrunner/src/match_context.rs +++ b/planetwars-matchrunner/src/match_context.rs @@ -66,11 +66,6 @@ impl MatchCtx { }; } - pub fn send_info(&mut self, player_id: u32, msg: String) { - let player = self.players.get_mut(&player_id).unwrap(); - player.handle.send_info(msg); - } - pub fn players(&self) -> Vec { self.players.keys().cloned().collect() } @@ -83,7 +78,6 @@ impl MatchCtx { pub trait PlayerHandle: Send { fn send_request(&mut self, r: RequestMessage); - fn send_info(&mut self, msg: String); } struct PlayerData { -- cgit v1.2.3