From: Ian Jackson Date: Sat, 22 Aug 2020 23:24:54 +0000 (+0100) Subject: fixes X-Git-Tag: otter-0.2.0~1092 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=74ac2b52f20f1bfcaa042bf2cca5036c48eff263;p=otter.git fixes --- 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)? }