1
0
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:
Matthew Brown 2016-10-18 16:28:51 -04:00
parent 935b9dfe07
commit f916a6f9a3
2 changed files with 3 additions and 5 deletions

View File

@ -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;

View File

@ -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();