Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Dec 7, 2021
1 parent 6362a77 commit 80b72d2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
parameters:
ignoreErrors:
-
message: "#^Method Nucleos\\\\LastFmBundle\\\\Action\\\\StartAuthAction\\:\\:generateUrl\\(\\) is unused\\.$#"
count: 1
path: src/Action/StartAuthAction.php

-
message: "#^Property Nucleos\\\\LastFmBundle\\\\Tests\\\\Action\\\\AuthErrorActionTest\\:\\:\\$router has no type specified\\.$#"
count: 1
Expand Down
14 changes: 0 additions & 14 deletions src/Action/StartAuthAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,4 @@ public function __invoke(): RedirectResponse

return new RedirectResponse($this->authService->getAuthUrl($callbackUrl));
}

/**
* Generates a URL from the given parameters.
*
* @param string $route The name of the route
* @param array $parameters An array of parameters
* @param int $referenceType The type of reference (one of the constants in UrlGeneratorInterface)
*
* @return string The generated URL
*/
private function generateUrl(string $route, array $parameters = [], int $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH): string
{
return $this->router->generate($route, $parameters, $referenceType);
}
}

0 comments on commit 80b72d2

Please sign in to comment.