Skip to content

Commit 4147370

Browse files
committed
Fix double clear-cache
1 parent 6ab5370 commit 4147370

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎src/FileSystem/FilesFinder.php‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace Rector\FileSystem;
66

77
use Nette\Utils\FileSystem;
8-
use Rector\Caching\Detector\ChangedFilesDetector;
98
use Rector\Caching\UnchangedFilesFilter;
109
use Rector\Configuration\Option;
1110
use Rector\Configuration\Parameter\SimpleParameterProvider;
@@ -24,7 +23,6 @@ public function __construct(
2423
private FileAndDirectoryFilter $fileAndDirectoryFilter,
2524
private PathSkipper $pathSkipper,
2625
private FilePathHelper $filePathHelper,
27-
private ChangedFilesDetector $changedFilesDetector,
2826
) {
2927
}
3028

@@ -111,10 +109,6 @@ function (string $file): bool {
111109
*/
112110
public function findFilesInPaths(array $paths, Configuration $configuration): array
113111
{
114-
if ($configuration->shouldClearCache()) {
115-
$this->changedFilesDetector->clear();
116-
}
117-
118112
return $this->findInDirectoriesAndFiles(
119113
$paths,
120114
$configuration->getFileExtensions(),

0 commit comments

Comments
 (0)