Skip to content

Commit a750def

Browse files
committed
remove check_run function from helpers
1 parent b5db059 commit a750def

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/bootstrap/src/utils/helpers.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -270,24 +270,6 @@ pub fn is_valid_test_suite_arg<'a, P: AsRef<Path>>(
270270
}
271271
}
272272

273-
// FIXME: get rid of this function
274-
pub fn check_run(cmd: &mut BootstrapCommand, print_cmd_on_fail: bool) -> bool {
275-
let status = match cmd.as_command_mut().status() {
276-
Ok(status) => status,
277-
Err(e) => {
278-
println!("failed to execute command: {cmd:?}\nERROR: {e}");
279-
return false;
280-
}
281-
};
282-
if !status.success() && print_cmd_on_fail {
283-
println!(
284-
"\n\ncommand did not execute successfully: {cmd:?}\n\
285-
expected success, got: {status}\n\n"
286-
);
287-
}
288-
status.success()
289-
}
290-
291273
pub fn make(host: &str) -> PathBuf {
292274
if host.contains("dragonfly")
293275
|| host.contains("freebsd")

0 commit comments

Comments
 (0)