We no longer support recommended packages, remove left over code

main
Nils Adermann 12 years ago
parent 92ecf5a603
commit 1d60ae1bfc

@ -42,7 +42,6 @@ class Solver
protected $branches = array(); protected $branches = array();
protected $problems = array(); protected $problems = array();
protected $learnedPool = array(); protected $learnedPool = array();
protected $recommendsIndex;
public function __construct(PolicyInterface $policy, Pool $pool, RepositoryInterface $installed) public function __construct(PolicyInterface $policy, Pool $pool, RepositoryInterface $installed)
{ {
@ -581,8 +580,7 @@ class Solver
/* make decisions based on job/update assertions */ /* make decisions based on job/update assertions */
$this->makeAssertionRuleDecisions(); $this->makeAssertionRuleDecisions();
$installRecommended = 0; $this->runSat(true);
$this->runSat(true, $installRecommended);
if ($this->problems) { if ($this->problems) {
throw new SolverProblemsException($this->problems); throw new SolverProblemsException($this->problems);
@ -801,8 +799,6 @@ class Solver
array_pop($this->branches); array_pop($this->branches);
} }
$this->recommendsIndex = -1;
} }
/**------------------------------------------------------------------- /**-------------------------------------------------------------------
@ -1139,9 +1135,7 @@ class Solver
$this->decisionQueueWhy = array(); $this->decisionQueueWhy = array();
$this->decisionQueueFree = array(); $this->decisionQueueFree = array();
$this->recommendsIndex = -1;
$this->propagateIndex = 0; $this->propagateIndex = 0;
$this->recommendations = array();
$this->branches = array(); $this->branches = array();
$this->enableDisableLearnedRules(); $this->enableDisableLearnedRules();
@ -1177,7 +1171,7 @@ class Solver
} }
} }
private function runSat($disableRules = true, $installRecommended = false) private function runSat($disableRules = true)
{ {
$this->propagateIndex = 0; $this->propagateIndex = 0;

Loading…
Cancel
Save