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() } diff --git a/crates/oxc_linter/src/lib.rs b/crates/oxc_linter/src/lib.rs index fa42f867c3d70..ffcf7a3bf3eca 100644 --- a/crates/oxc_linter/src/lib.rs +++ b/crates/oxc_linter/src/lib.rs @@ -79,13 +79,6 @@ impl Linter { Self { options, config } } - #[cfg(test)] - #[must_use] - pub fn with_rules(mut self, rules: Vec) -> Self { - self.config.set_rules(rules); - self - } - /// Set the kind of auto fixes to apply. /// /// # Example