From 74ac2b52f20f1bfcaa042bf2cca5036c48eff263 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 23 Aug 2020 00:24:54 +0100 Subject: [PATCH] fixes --- src/global.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/global.rs b/src/global.rs index 07bd3166..ac40901a 100644 --- a/src/global.rs +++ b/src/global.rs @@ -421,9 +421,6 @@ impl InstanceGuard<'_> { #[throws(MgmtError)] pub fn players_access_reset(&mut self, players: &[PlayerId]) -> Vec { - // tokens can't persist unless game is never destroyed ? - // so a game is like a tables, and persistent - // xxx boxes feature maybe for &player in players { self.c.g.gs.players.get(player).ok_or(MgmtError::PlayerNotFound)?; } @@ -447,9 +444,6 @@ impl InstanceGuard<'_> { #[throws(MgmtError)] pub fn players_access_report(&mut self, players: &[PlayerId]) -> Vec> { - // tokens can't persist unless game is never destroyed ? - // so a game is like a tables, and persistent - // xxx boxes feature maybe let mut wanted = { let mut wanted = SecondarySlotMap::new(); for &player in players { @@ -609,7 +603,6 @@ impl InstanceGuard<'_> { fn load_something(name: &InstanceName, prefix: &str) -> T { let inp = savefilename(name, prefix, ""); let mut f = BufReader::new(fs::File::open(&inp).context(inp)?); - // xxx handle ENOENT specially, own OE variant rmp_serde::decode::from_read(&mut f)? } -- 2.30.2