Skip to content

Commit b5db059

Browse files
committed
remove check_run method from config
1 parent c67f7ae commit b5db059

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

src/bootstrap/src/core/download.rs

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ use xz2::bufread::XzDecoder;
99

1010
use crate::core::config::BUILDER_CONFIG_FILENAME;
1111
use crate::utils::build_stamp::BuildStamp;
12-
use crate::utils::exec::{BootstrapCommand, command};
13-
use crate::utils::helpers::{check_run, exe, hex_encode, move_file};
12+
use crate::utils::exec::command;
13+
use crate::utils::helpers::{exe, hex_encode, move_file};
1414
use crate::{Config, t};
1515

1616
static SHOULD_FIX_BINS_AND_DYLIBS: OnceLock<bool> = OnceLock::new();
@@ -65,17 +65,6 @@ impl Config {
6565
tmp
6666
}
6767

68-
/// Runs a command, printing out nice contextual information if it fails.
69-
/// Returns false if do not execute at all, otherwise returns its
70-
/// `status.success()`.
71-
pub(crate) fn check_run(&self, cmd: &mut BootstrapCommand) -> bool {
72-
if self.dry_run() && !cmd.run_always {
73-
return true;
74-
}
75-
self.verbose(|| println!("running: {cmd:?}"));
76-
check_run(cmd, self.is_verbose())
77-
}
78-
7968
/// Whether or not `fix_bin_or_dylib` needs to be run; can only be true
8069
/// on NixOS
8170
fn should_fix_bins_and_dylibs(&self) -> bool {

0 commit comments

Comments
 (0)