Skip to content

Commit cb0d600

Browse files
authored
Merge pull request #2052 from Kobzol/remove-unused-code
Remove unused code
2 parents 534a3d8 + bba8b53 commit cb0d600

File tree

4 files changed

+4
-62
lines changed

4 files changed

+4
-62
lines changed

src/github.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,6 @@ pub struct CommitBase {
12741274
#[derive(Debug, serde::Deserialize)]
12751275
pub struct IssueSearchResult {
12761276
pub total_count: u64,
1277-
pub incomplete_results: bool,
12781277
pub items: Vec<Issue>,
12791278
}
12801279

src/interactions.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -38,26 +38,6 @@ impl<'a> ErrorComment<'a> {
3838
}
3939
}
4040

41-
pub struct PingComment<'a> {
42-
issue: &'a Issue,
43-
users: &'a [&'a str],
44-
}
45-
46-
impl<'a> PingComment<'a> {
47-
pub fn new(issue: &'a Issue, users: &'a [&str]) -> PingComment<'a> {
48-
PingComment { issue, users }
49-
}
50-
51-
pub async fn post(&self, client: &GithubClient) -> anyhow::Result<()> {
52-
let mut body = String::new();
53-
for user in self.users {
54-
write!(body, "@{} ", user)?;
55-
}
56-
self.issue.post_comment(client, &body).await?;
57-
Ok(())
58-
}
59-
}
60-
6141
pub struct EditIssueBody<'a, T>
6242
where
6343
T: for<'t> Deserialize<'t> + Serialize + Default + std::fmt::Debug + Sync + PartialEq + Clone,

src/lib.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,18 @@ use interactions::ErrorComment;
88
use std::fmt;
99
use tracing as log;
1010

11-
pub mod actions;
11+
mod actions;
1212
pub mod agenda;
1313
mod changelogs;
14-
pub mod config;
14+
mod config;
1515
pub mod db;
1616
pub mod github;
1717
pub mod handlers;
18-
pub mod interactions;
18+
mod interactions;
1919
pub mod jobs;
2020
pub mod notification_listing;
2121
pub mod payload;
22-
pub mod rfcbot;
23-
pub mod team;
22+
mod rfcbot;
2423
mod team_data;
2524
pub mod triage;
2625
mod utils;

src/team.rs

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)