Skip to content

Commit 7f5bdf3

Browse files
committed
Remove some dead code from toolstate.rs
1 parent 4566094 commit 7f5bdf3

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/bootstrap/toolstate.rs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const OS: Option<&str> = None;
2424

2525
type ToolstateData = HashMap<Box<str>, ToolState>;
2626

27-
#[derive(Copy, Clone, Debug, Deserialize, Serialize, PartialEq, Eq, PartialOrd)]
27+
#[derive(Copy, Clone, Debug, Deserialize, Serialize, PartialEq, PartialOrd)]
2828
#[serde(rename_all = "kebab-case")]
2929
/// Whether a tool can be compiled, tested or neither
3030
pub enum ToolState {
@@ -50,13 +50,6 @@ impl fmt::Display for ToolState {
5050
}
5151
}
5252

53-
impl Default for ToolState {
54-
fn default() -> Self {
55-
// err on the safe side
56-
ToolState::BuildFail
57-
}
58-
}
59-
6053
/// Number of days after the last promotion of beta.
6154
/// Its value is 41 on the Tuesday where "Promote master to beta (T-2)" happens.
6255
/// The Wednesday after this has value 0.
@@ -466,13 +459,11 @@ fn publish_test_results(current_toolstate: &ToolstateData) {
466459
t!(fs::write(&history_path, file));
467460
}
468461

469-
#[derive(Debug, Serialize, Deserialize)]
462+
#[derive(Debug, Deserialize)]
470463
struct RepoState {
471464
tool: String,
472465
windows: ToolState,
473466
linux: ToolState,
474-
commit: String,
475-
datetime: String,
476467
}
477468

478469
impl RepoState {

0 commit comments

Comments
 (0)