mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Remove unused methods
This commit is contained in:
parent
935b9dfe07
commit
f916a6f9a3
@ -100,12 +100,10 @@ abstract class FunctionLikeChecker implements StatementsSource
|
||||
$this->suppressed_issues = $source->getSuppressedIssues();
|
||||
}
|
||||
|
||||
public function check(Context $context, $check_methods = true)
|
||||
public function check(Context $context)
|
||||
{
|
||||
if ($function_stmts = $this->function->getStmts()) {
|
||||
$has_context = (bool) count($context->vars_in_scope);
|
||||
|
||||
$statements_checker = new StatementsChecker($this, $has_context, $check_methods);
|
||||
$statements_checker = new StatementsChecker($this);
|
||||
|
||||
$hash = null;
|
||||
|
||||
|
@ -136,7 +136,7 @@ class StatementsChecker
|
||||
|
||||
protected static $user_constants = [];
|
||||
|
||||
public function __construct(StatementsSource $source, $enforce_variable_checks = false, $check_methods = true)
|
||||
public function __construct(StatementsSource $source)
|
||||
{
|
||||
$this->source = $source;
|
||||
$this->file_name = $this->source->getFileName();
|
||||
|
Loading…
x
Reference in New Issue
Block a user