Skip to content

Commit 4971637

Browse files
committed
optimize
1 parent c5cc78d commit 4971637

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/bootstrap/src/core/config/config.rs

-14
Original file line numberDiff line numberDiff line change
@@ -2885,20 +2885,6 @@ impl Config {
28852885

28862886
Some(commit.to_string())
28872887
}
2888-
2889-
/// Check for changes in specified directories since a given commit.
2890-
/// Returns true if changes exist, false if no changes
2891-
pub fn check_for_changes(&self, dirs: &[PathBuf], commit: &str) -> bool {
2892-
let mut git = helpers::git(Some(&self.src));
2893-
git.args(["diff-index", "--quiet", commit]);
2894-
if !dirs.is_empty() {
2895-
git.arg("--");
2896-
for dir in dirs {
2897-
git.arg(dir);
2898-
}
2899-
}
2900-
!t!(git.as_command_mut().status()).success()
2901-
}
29022888
}
29032889

29042890
/// Compares the current `Llvm` options against those in the CI LLVM builder and detects any incompatible options.

0 commit comments

Comments
 (0)