Skip to content

Commit dbb9665

Browse files
Seldaekondrejmirtes
authored andcommitted
Tentatively remove dead code
1 parent 522a8b0 commit dbb9665

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

src/Type/Php/RegexArrayShapeMatcher.php

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -625,33 +625,6 @@ private function walkGroupAst(TreeNode $ast, TrinaryLogic &$isNonEmpty, TrinaryL
625625
}
626626
}
627627

628-
if ($ast->getId() === '#range' || $ast->getId() === '#class') {
629-
if ($isNumeric->maybe()) {
630-
$allNumeric = null;
631-
foreach ($children as $child) {
632-
$literalValue = $this->getLiteralValue($child);
633-
634-
if ($literalValue === null) {
635-
break;
636-
}
637-
638-
if (Strings::match($literalValue, '/^\d+$/') === null) {
639-
break;
640-
}
641-
642-
$allNumeric = true;
643-
}
644-
645-
if ($allNumeric === true) {
646-
$isNumeric = TrinaryLogic::createYes();
647-
}
648-
}
649-
650-
if (!$inOptionalQuantification) {
651-
$isNonEmpty = TrinaryLogic::createYes();
652-
}
653-
}
654-
655628
foreach ($children as $child) {
656629
$this->walkGroupAst(
657630
$child,

0 commit comments

Comments
 (0)