Skip to content

Commit

Permalink
Remove property that is only written to but never used
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Dec 11, 2021
1 parent 76bb8bc commit 19ae9e8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions src/Psalm/Internal/Type/TypeCombination.php
Expand Up @@ -39,9 +39,6 @@ class TypeCombination
/** @var array<string|int, Union> */
public $objectlike_entries = [];

/** @var array<string, bool> */
public $objectlike_class_strings = [];

/** @var bool */
public $objectlike_sealed = true;

Expand Down
7 changes: 0 additions & 7 deletions src/Psalm/Internal/Type/TypeCombiner.php
Expand Up @@ -66,7 +66,6 @@
use function in_array;
use function is_int;
use function is_numeric;
use function is_string;
use function strpos;
use function strtolower;
use function substr;
Expand Down Expand Up @@ -706,12 +705,6 @@ private static function scrapeTypeProperties(
);
}

if (is_string($candidate_property_name)
&& isset($type->class_strings[$candidate_property_name])
) {
$combination->objectlike_class_strings[$candidate_property_name] = true;
}

if (!$type->previous_value_type) {
unset($possibly_undefined_entries[$candidate_property_name]);
}
Expand Down

0 comments on commit 19ae9e8

Please sign in to comment.