Skip to content

Commit

Permalink
Removed dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich committed Nov 14, 2021
1 parent 4e71bf4 commit 27aaa0b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public function generateClassStub(string $className): ?StubData
}

$extension = $this->getExtensionFromFilePath($filePath);
$stub = $this->createStub($this->classNodes[$lowercaseClassName], $extension);
$stub = $this->createStub($this->classNodes[$lowercaseClassName]);

if ($className === Traversable::class) {
// See https://github.com/JetBrains/phpstorm-stubs/commit/0778a26992c47d7dbee4d0b0bfb7fad4344371b1#diff-575bacb45377d474336c71cbf53c1729
Expand Down Expand Up @@ -259,7 +259,7 @@ public function generateFunctionStub(string $functionName): ?StubData

$extension = $this->getExtensionFromFilePath($filePath);

return new StubData($this->createStub($this->functionNodes[$lowercaseFunctionName], $extension), $extension);
return new StubData($this->createStub($this->functionNodes[$lowercaseFunctionName]), $extension);
}

public function generateConstantStub(string $constantName): ?StubData
Expand Down Expand Up @@ -295,7 +295,7 @@ public function generateConstantStub(string $constantName): ?StubData

$extension = $this->getExtensionFromFilePath($filePath);

return new StubData($this->createStub($constantNode, $extension), $extension);
return new StubData($this->createStub($constantNode), $extension);
}

private function parseFile(string $filePath): void
Expand Down Expand Up @@ -363,7 +363,7 @@ private function parseFile(string $filePath): void
/**
* @param Node\Stmt\ClassLike|Node\Stmt\Function_|Node\Stmt\Const_|Node\Expr\FuncCall $node
*/
private function createStub(Node $node, string $extension): string
private function createStub(Node $node): string
{
if (! ($node instanceof Node\Expr\FuncCall)) {
$this->addDeprecatedDocComment($node);
Expand Down

0 comments on commit 27aaa0b

Please sign in to comment.