Skip to content

Commit

Permalink
chore(ls): remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah-potter committed Jan 21, 2025
1 parent b563994 commit 42476b6
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 43 deletions.
2 changes: 1 addition & 1 deletion harper-ls/src/backend.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::collections::HashMap;
use std::fs::{File, OpenOptions};
use std::fs::OpenOptions;
use std::io::{BufWriter, Write};
use std::path::{Component, PathBuf};
use std::sync::Arc;
Expand Down
1 change: 0 additions & 1 deletion harper-ls/src/diagnostics.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::collections::HashMap;
use std::str::FromStr;

use harper_core::linting::{Lint, Suggestion};
use harper_core::CharStringExt;
Expand Down
28 changes: 0 additions & 28 deletions harper-ls/src/stats/lint_summary.rs

This file was deleted.

13 changes: 0 additions & 13 deletions harper-ls/src/stats/mod.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
mod lint_record;
mod lint_summary;

use std::io::Write;

pub use lint_record::LintRecord;
pub use lint_summary::LintSummary;
use tokio::io;

pub struct Stats {
Expand All @@ -19,17 +17,6 @@ impl Stats {
}
}

/// Count the number of each kind of lint applied.
pub fn summarize_lints_applied(&self) -> LintSummary {
let mut summary = LintSummary::new();

for lint in &self.lints_applied {
summary.inc(lint.kind);
}

summary
}

pub fn lint_applied(&mut self, record: LintRecord) {
self.lints_applied.push(record);
}
Expand Down

0 comments on commit 42476b6

Please sign in to comment.