diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-02-03 20:46:40 +0100 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-02-03 20:46:40 +0100 |
commit | 0a102a93716d85d7a1c3ef280761d615cfdd738b (patch) | |
tree | a38864ea2bb2bbbc5976ee9654f3e5855f155fc2 /planetwars-matchrunner/src/match_context.rs | |
parent | af7627d346725c974b012df8eb6ebc2a630adf4c (diff) | |
download | planetwars.dev-0a102a93716d85d7a1c3ef280761d615cfdd738b.tar.xz planetwars.dev-0a102a93716d85d7a1c3ef280761d615cfdd738b.zip |
remove send_info method
Diffstat (limited to 'planetwars-matchrunner/src/match_context.rs')
-rw-r--r-- | planetwars-matchrunner/src/match_context.rs | 6 |
1 files changed, 0 insertions, 6 deletions
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<u32> { 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 { |