diff --git a/src/skill_runtime/executor.rs b/src/skill_runtime/executor.rs index 820c45c..0e5fe87 100644 --- a/src/skill_runtime/executor.rs +++ b/src/skill_runtime/executor.rs @@ -413,26 +413,6 @@ fn devbase_home() -> anyhow::Result { Ok(path.to_string_lossy().to_string()) } -#[cfg(windows)] -fn wait_with_timeout( - child: &mut std::process::Child, - timeout: Duration, -) -> anyhow::Result> { - let start = Instant::now(); - loop { - match child.try_wait()? { - Some(status) => return Ok(Some(status)), - None => { - if start.elapsed() >= timeout { - return Ok(None); - } - std::thread::sleep(Duration::from_millis(50)); - } - } - } -} - -#[cfg(unix)] fn wait_with_timeout( child: &mut std::process::Child, timeout: Duration,