From 3262b86d470399d7307130fc58eb1c5207a85951 Mon Sep 17 00:00:00 2001 From: Cameron Clark Date: Thu, 19 Dec 2024 21:23:53 +0000 Subject: [PATCH] refactor(linter): remove unused `with_rules` method --- crates/oxc_linter/src/lib.rs | 7 ------- 1 file changed, 7 deletions(-) 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