Remove unused RULE_INTERNAL_ALLOW_UPDATE
parent
c8efb50d39
commit
5e5f9f8142
|
@ -28,7 +28,6 @@ use Composer\Semver\Constraint\Constraint;
|
|||
abstract class Rule
|
||||
{
|
||||
// reason constants
|
||||
const RULE_INTERNAL_ALLOW_UPDATE = 1;
|
||||
const RULE_ROOT_REQUIRE = 2;
|
||||
const RULE_FIXED = 3;
|
||||
const RULE_PACKAGE_CONFLICT = 6;
|
||||
|
@ -180,9 +179,6 @@ abstract class Rule
|
|||
}
|
||||
|
||||
switch ($this->getReason()) {
|
||||
case self::RULE_INTERNAL_ALLOW_UPDATE:
|
||||
return $ruleText;
|
||||
|
||||
case self::RULE_ROOT_REQUIRE:
|
||||
$packageName = $this->reasonData['packageName'];
|
||||
$constraint = $this->reasonData['constraint'];
|
||||
|
|
|
@ -35,7 +35,7 @@ class RuleSetIteratorTest extends TestCase
|
|||
new GenericRule(array(), Rule::RULE_ROOT_REQUIRE, null),
|
||||
),
|
||||
RuleSet::TYPE_LEARNED => array(
|
||||
new GenericRule(array(), Rule::RULE_INTERNAL_ALLOW_UPDATE, null),
|
||||
new GenericRule(array(), Rule::RULE_FIXED, null),
|
||||
),
|
||||
RuleSet::TYPE_PACKAGE => array(),
|
||||
);
|
||||
|
|
|
@ -31,7 +31,7 @@ class RuleSetTest extends TestCase
|
|||
new GenericRule(array(2), Rule::RULE_ROOT_REQUIRE, null),
|
||||
),
|
||||
RuleSet::TYPE_LEARNED => array(
|
||||
new GenericRule(array(), Rule::RULE_INTERNAL_ALLOW_UPDATE, null),
|
||||
new GenericRule(array(), Rule::RULE_FIXED, null),
|
||||
),
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue