Skip to content

Commit 5852a85

Browse files
committed
Remove unused isTokenInsideArrowFunctionDefinition
1 parent 3f57187 commit 5852a85

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

VariableAnalysis/Lib/Helpers.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -629,24 +629,6 @@ private static function getStartOfTokenScope(File $phpcsFile, $stackPtr)
629629
return 0;
630630
}
631631

632-
/**
633-
* @param File $phpcsFile
634-
* @param int $stackPtr
635-
*
636-
* @return bool
637-
*/
638-
public static function isTokenInsideArrowFunctionDefinition(File $phpcsFile, $stackPtr)
639-
{
640-
$tokens = $phpcsFile->getTokens();
641-
$token = $tokens[$stackPtr];
642-
$openParenIndices = isset($token['nested_parenthesis']) ? $token['nested_parenthesis'] : [];
643-
if (empty($openParenIndices)) {
644-
return false;
645-
}
646-
$openParenPtr = $openParenIndices[0];
647-
return self::isArrowFunction($phpcsFile, $openParenPtr - 1);
648-
}
649-
650632
/**
651633
* @param File $phpcsFile
652634
* @param int $stackPtr

psalm-baseline.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
<PossiblyInvalidOperand>
2929
<code><![CDATA[$message]]></code>
3030
</PossiblyInvalidOperand>
31-
<PossiblyUnusedMethod>
32-
<code><![CDATA[isTokenInsideArrowFunctionDefinition]]></code>
33-
</PossiblyUnusedMethod>
3431
<UnusedVariable>
3532
<code><![CDATA[$isNestedAssignment]]></code>
3633
</UnusedVariable>

0 commit comments

Comments
 (0)