From 83136bad9392bbd0180d4bc722045cfca837b555 Mon Sep 17 00:00:00 2001 From: Cameron Clark Date: Thu, 19 Dec 2024 21:24:07 +0000 Subject: [PATCH] refactor(linter): remove unused `set_rules` method --- crates/oxc_linter/src/config/flat.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/crates/oxc_linter/src/config/flat.rs b/crates/oxc_linter/src/config/flat.rs index b5fcd9a2552cb..bece45963f348 100644 --- a/crates/oxc_linter/src/config/flat.rs +++ b/crates/oxc_linter/src/config/flat.rs @@ -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) { - self.base.rules = Arc::from(new_rules.into_boxed_slice()); - } - pub fn number_of_rules(&self) -> usize { self.base.rules.len() }