From 85156e496895ec07ea07bcc1b3cc287085705a36 Mon Sep 17 00:00:00 2001 From: kaizen-ci Date: Wed, 10 Feb 2021 11:37:06 +0000 Subject: [PATCH] [ci-review] Rector Rectify --- .../NodeTraverser/RectorNodeTraverser.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/PhpParser/NodeTraverser/RectorNodeTraverser.php b/src/PhpParser/NodeTraverser/RectorNodeTraverser.php index 351d5f21fd28..4e6890111ec6 100644 --- a/src/PhpParser/NodeTraverser/RectorNodeTraverser.php +++ b/src/PhpParser/NodeTraverser/RectorNodeTraverser.php @@ -135,24 +135,6 @@ public function getZeroCacheRectorCount(): int return count($zeroCacheRectors); } - /** - * Mostly used for testing - */ - private function activateEnabledRectorOnly(): void - { - $this->visitors = []; - - $enabledRector = $this->enabledRectorProvider->getEnabledRector(); - foreach ($this->allPhpRectors as $phpRector) { - if (! is_a($phpRector, $enabledRector, true)) { - continue; - } - - $this->addVisitor($phpRector); - break; - } - } - private function hasFileNodeRectorsEnabled(): bool { foreach ($this->visitors as $visitor) {