Skip to content

Commit

Permalink
[DeadCode] Remove RemoveDuplicatedInstanceOfRector as hardly practical (
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed May 23, 2023
1 parent d603b00 commit 8a74ea7
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 318 deletions.
2 changes: 0 additions & 2 deletions config/set/dead-code.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Rector\DeadCode\Rector\Array_\RemoveDuplicatedArrayKeyRector;
use Rector\DeadCode\Rector\Assign\RemoveDoubleAssignRector;
use Rector\DeadCode\Rector\Assign\RemoveUnusedVariableAssignRector;
use Rector\DeadCode\Rector\BinaryOp\RemoveDuplicatedInstanceOfRector;
use Rector\DeadCode\Rector\BooleanAnd\RemoveAndTrueRector;
use Rector\DeadCode\Rector\Cast\RecastingRemovalRector;
use Rector\DeadCode\Rector\ClassConst\RemoveUnusedPrivateClassConstantRector;
Expand Down Expand Up @@ -70,7 +69,6 @@
RemoveConcatAutocastRector::class,
SimplifyUselessVariableRector::class,
RemoveDelegatingParentCallRector::class,
RemoveDuplicatedInstanceOfRector::class,
RemoveDuplicatedCaseInSwitchRector::class,
RemoveNullPropertyInitializationRector::class,
RemoveUnreachableStatementRector::class,
Expand Down
2 changes: 0 additions & 2 deletions config/set/instanceof.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector;
use Rector\CodeQuality\Rector\Identical\GetClassToInstanceOfRector;
use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\BinaryOp\RemoveDuplicatedInstanceOfRector;
use Rector\DeadCode\Rector\If_\RemoveDeadInstanceOfRector;
use Rector\TypeDeclaration\Rector\BooleanAnd\BinaryOpNullableToInstanceofRector;
use Rector\TypeDeclaration\Rector\Empty_\EmptyOnNullableObjectToInstanceOfRector;
Expand All @@ -19,7 +18,6 @@
GetClassToInstanceOfRector::class,
InlineIsAInstanceOfRector::class,
FlipTypeControlToUseExclusiveTypeRector::class,
RemoveDuplicatedInstanceOfRector::class,
RemoveDeadInstanceOfRector::class,
FlipNegatedTernaryInstanceofRector::class,
BinaryOpNullableToInstanceofRector::class,
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

36 changes: 0 additions & 36 deletions rules/DeadCode/NodeAnalyzer/InstanceOfUniqueKeyResolver.php

This file was deleted.

112 changes: 0 additions & 112 deletions rules/DeadCode/Rector/BinaryOp/RemoveDuplicatedInstanceOfRector.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/Kernel/RectorKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ final class RectorKernel
/**
* @var string
*/
private const CACHE_KEY = 'v22';
private const CACHE_KEY = 'v23';

private ContainerInterface|null $container = null;

Expand Down

0 comments on commit 8a74ea7

Please sign in to comment.