Skip to content

Commit

Permalink
refactor(linter): remove unused set_rules method
Browse files Browse the repository at this point in the history
  • Loading branch information
camc314 committed Dec 19, 2024
1 parent 3262b86 commit 83136ba
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions crates/oxc_linter/src/config/flat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,6 @@ impl ConfigStore {
Self { cache, base, overrides }
}

/// Set the base rules, replacing all existing rules.
#[cfg(test)]
#[inline]
pub fn set_rules(&mut self, new_rules: Vec<RuleWithSeverity>) {
self.base.rules = Arc::from(new_rules.into_boxed_slice());
}

pub fn number_of_rules(&self) -> usize {
self.base.rules.len()
}
Expand Down

0 comments on commit 83136ba

Please sign in to comment.