Skip to content

Commit 32cdb8e

Browse files
committed
Remove unused items from site::api
1 parent 0b514c3 commit 32cdb8e

File tree

2 files changed

+1
-31
lines changed

2 files changed

+1
-31
lines changed

site/src/api.rs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,8 @@
44
//!
55
//! The responses are calculated in the server.rs file.
66
7-
use database::Benchmark;
8-
use serde::{Deserialize, Serialize};
9-
use std::fmt;
107
use std::result::Result as StdResult;
118

12-
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
13-
pub struct StyledBenchmarkName {
14-
pub name: Benchmark,
15-
pub profile: crate::db::Profile,
16-
}
17-
18-
impl fmt::Display for StyledBenchmarkName {
19-
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
20-
write!(f, "{}-{}", self.name, self.profile)
21-
}
22-
}
23-
24-
impl Serialize for StyledBenchmarkName {
25-
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
26-
where
27-
S: serde::ser::Serializer,
28-
{
29-
serializer.collect_str(&self)
30-
}
31-
}
32-
339
pub type ServerResult<T> = StdResult<T, String>;
3410

3511
pub mod info {
@@ -65,11 +41,6 @@ pub mod dashboard {
6541
}
6642
}
6743

68-
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
69-
pub struct CommitResponse {
70-
pub commit: Option<String>,
71-
}
72-
7344
pub mod graph {
7445
use collector::Bound;
7546
use serde::{Deserialize, Serialize};
@@ -308,7 +279,6 @@ pub mod self_profile {
308279
pub base_commit: Option<String>,
309280
pub benchmark: String,
310281
pub run_name: String,
311-
312282
pub sort_idx: String,
313283
}
314284

site/src/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use serde::Serialize;
1919

2020
pub use crate::api::{
2121
self, bootstrap, comparison, dashboard, github, graph, info, self_profile, self_profile_raw,
22-
status, triage, CommitResponse, ServerResult, StyledBenchmarkName,
22+
status, triage, ServerResult,
2323
};
2424
use crate::db::{self, ArtifactId};
2525
use crate::load::{Config, SiteCtxt};

0 commit comments

Comments
 (0)