1
0
Fork 0

Remove unused policy function findUpdatePackages

pull/8566/head
Nils Adermann 2020-01-30 22:49:15 +01:00
parent a1fe64152d
commit 4f44b7b221
2 changed files with 0 additions and 16 deletions

View File

@ -44,19 +44,6 @@ class DefaultPolicy implements PolicyInterface
return $constraint->matchSpecific($version, true);
}
public function findUpdatePackages(Pool $pool, PackageInterface $package, $mustMatchName = false)
{
$packages = array();
foreach ($pool->whatProvides($package->getName(), null, $mustMatchName) as $candidate) {
if ($candidate !== $package) {
$packages[] = $candidate;
}
}
return $packages;
}
public function selectPreferredPackages(Pool $pool, array $literals, $requiredPackage = null)
{
$packages = $this->groupLiteralsByName($pool, $literals);

View File

@ -20,8 +20,5 @@ use Composer\Package\PackageInterface;
interface PolicyInterface
{
public function versionCompare(PackageInterface $a, PackageInterface $b, $operator);
public function findUpdatePackages(Pool $pool, PackageInterface $package);
public function selectPreferredPackages(Pool $pool, array $literals, $requiredPackage = null);
}