mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 13:51:54 +01:00
useless statements
This commit is contained in:
parent
ff62e71e0d
commit
996def0d4d
@ -227,7 +227,6 @@ class ParseTreeCreator
|
||||
|
||||
if ($this->current_leaf !== $current_parent) {
|
||||
$new_parent_leaf->children = [$this->current_leaf];
|
||||
$this->current_leaf->parent = $new_parent_leaf;
|
||||
array_pop($current_parent->children);
|
||||
}
|
||||
|
||||
@ -419,8 +418,6 @@ class ParseTreeCreator
|
||||
|
||||
if ($current_parent !== $this->current_leaf) {
|
||||
$new_leaf->children = [$this->current_leaf];
|
||||
$this->current_leaf->parent = $new_leaf;
|
||||
|
||||
array_pop($current_parent->children);
|
||||
}
|
||||
$current_parent->children[] = $new_leaf;
|
||||
@ -505,8 +502,6 @@ class ParseTreeCreator
|
||||
|
||||
$new_parent_leaf = new KeyedArrayPropertyTree($this->current_leaf->value, $current_parent);
|
||||
$new_parent_leaf->possibly_undefined = $prev_token !== null && $prev_token[0] === '?';
|
||||
$this->current_leaf->parent = $new_parent_leaf;
|
||||
|
||||
array_pop($current_parent->children);
|
||||
$current_parent->children[] = $new_parent_leaf;
|
||||
|
||||
@ -574,8 +569,6 @@ class ParseTreeCreator
|
||||
$this->current_leaf->parent
|
||||
);
|
||||
|
||||
$this->current_leaf->parent = $new_leaf;
|
||||
|
||||
array_pop($current_parent->children);
|
||||
$current_parent->children[] = $new_leaf;
|
||||
$this->current_leaf = $new_leaf;
|
||||
@ -677,7 +670,6 @@ class ParseTreeCreator
|
||||
|
||||
$new_parent_leaf = new IntersectionTree($current_parent);
|
||||
$new_parent_leaf->children = [$this->current_leaf];
|
||||
$this->current_leaf->parent = $new_parent_leaf;
|
||||
|
||||
if ($current_parent) {
|
||||
array_pop($current_parent->children);
|
||||
|
Loading…
x
Reference in New Issue
Block a user