chiark / gitweb /
fixes
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 22 Aug 2020 23:24:54 +0000 (00:24 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 22 Aug 2020 23:24:54 +0000 (00:24 +0100)
src/global.rs

index 07bd3166e9b2358949872631764950cccec73f64..ac40901af3b4ee467b1f2f27517628fe5299288e 100644 (file)
@@ -421,9 +421,6 @@ impl InstanceGuard<'_> {
   #[throws(MgmtError)]
   pub fn players_access_reset(&mut self, players: &[PlayerId])
                              -> Vec<RawToken> {
-    // 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<Vec<RawToken>> {
-    // 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<T:DeserializeOwned>(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)?
   }