chiark / gitweb /
wdt: clean up conflict check
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 29 Jan 2021 21:15:08 +0000 (21:15 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 30 Jan 2021 00:39:31 +0000 (00:39 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
wdriver/wdt-simple.rs

index 834a369ff4585eac55c891bd2a70ebe058eeb19e..46fde760fe7ff7f9881d19813867d835b7ac0bef 100644 (file)
@@ -203,8 +203,6 @@ impl Ctx {
       let w = su.w(side.window)?;
       let p = w.find_piece(pc)?;
 
-      // xxx why do both report conflict
-      // xxx why has neither actually moved it
       w.action_chain()
         .move_w(&w, side.start)?
         .click()
@@ -216,17 +214,6 @@ impl Ctx {
 
         .perform()
         .context("conflicting drag")?;
-
-//      let mut pause = Duration::from_millis(1);
-//      loop {
-//        ensure!( pause < Duration::from_secs(1) );
-//        dbg!(pause);
-//        sleep(pause);
-        let _now = p.posg()?;
-//ensure_eq!(now, side.try_end);
-//        if now == side.try_end { break }
-//        pause *= 2;
-//      }
     }
 
     nix::sys::signal::kill(pid, nix::sys::signal::SIGCONT)?;
@@ -254,7 +241,6 @@ impl Ctx {
         })
         .collect::<Result<Vec<String>,_>>()?;
 
-      // xxx clone and hack
       let held = w.piece_held(&pc)?;
 
       Ok::<_,AE>(Got { now, log, held })