diff options
| author | klensy <klensy@users.noreply.github.com> | 2024-04-06 13:58:52 +0300 |
|---|---|---|
| committer | klensy <klensy@users.noreply.github.com> | 2024-04-06 13:58:52 +0300 |
| commit | e0af5eae3615c0aa9dd4b33ae6f9e1fd8e4e03b3 (patch) | |
| tree | 6e5fea8ed88e0d37ba208898f2c6ef2ba3bc93d0 | |
| parent | 8d490e33ad7bbcdeab7975be787653b1e46e48e4 (diff) | |
| download | rust-e0af5eae3615c0aa9dd4b33ae6f9e1fd8e4e03b3.tar.gz rust-e0af5eae3615c0aa9dd4b33ae6f9e1fd8e4e03b3.zip | |
bootstrap: remove unused pub fns
| -rw-r--r-- | src/bootstrap/src/core/builder.rs | 21 | ||||
| -rw-r--r-- | src/bootstrap/src/lib.rs | 9 |
2 files changed, 0 insertions, 30 deletions
diff --git a/src/bootstrap/src/core/builder.rs b/src/bootstrap/src/core/builder.rs index 9555be481e6..40f58b25e6f 100644 --- a/src/bootstrap/src/core/builder.rs +++ b/src/bootstrap/src/core/builder.rs @@ -645,27 +645,6 @@ pub enum Kind { } impl Kind { - pub fn parse(string: &str) -> Option<Kind> { - // these strings, including the one-letter aliases, must match the x.py help text - Some(match string { - "build" | "b" => Kind::Build, - "check" | "c" => Kind::Check, - "clippy" => Kind::Clippy, - "fix" => Kind::Fix, - "fmt" => Kind::Format, - "test" | "t" => Kind::Test, - "bench" => Kind::Bench, - "doc" | "d" => Kind::Doc, - "clean" => Kind::Clean, - "dist" => Kind::Dist, - "install" => Kind::Install, - "run" | "r" => Kind::Run, - "setup" => Kind::Setup, - "suggest" => Kind::Suggest, - _ => return None, - }) - } - pub fn as_str(&self) -> &'static str { match self { Kind::Build => "build", diff --git a/src/bootstrap/src/lib.rs b/src/bootstrap/src/lib.rs index bcb8260b15a..1a8322c0dfd 100644 --- a/src/bootstrap/src/lib.rs +++ b/src/bootstrap/src/lib.rs @@ -1911,15 +1911,6 @@ impl Compiler { pub fn is_snapshot(&self, build: &Build) -> bool { self.stage == 0 && self.host == build.build } - - /// Returns if this compiler should be treated as a final stage one in the - /// current build session. - /// This takes into account whether we're performing a full bootstrap or - /// not; don't directly compare the stage with `2`! - pub fn is_final_stage(&self, build: &Build) -> bool { - let final_stage = if build.config.full_bootstrap { 2 } else { 1 }; - self.stage >= final_stage - } } fn envify(s: &str) -> String { |
