Removed long deprecated functions that were no longer referenced anywhere.

main
Niels Keurentjes 8 years ago
parent aa6b2e5b63
commit ebfceefca6

@ -62,16 +62,6 @@ class DefaultPolicy implements PolicyInterface
return $pool->getPriority($package->getRepository());
}
/**
* @deprecated Method has been renamed to selectPreferredPackages, you should update usages
*/
public function selectPreferedPackages(Pool $pool, array $installedMap, array $literals, $requiredPackage = null)
{
trigger_error('Method selectPreferedPackages is deprecated and replaced by selectPreferredPackages, please update your usage', E_USER_DEPRECATED);
return $this->selectPreferredPackages($pool, $installedMap, $literals, $requiredPackage);
}
public function selectPreferredPackages(Pool $pool, array $installedMap, array $literals, $requiredPackage = null)
{
$packages = $this->groupLiteralsByNamePreferInstalled($pool, $installedMap, $literals);

@ -147,14 +147,6 @@ class Rule
return !(($this->bitfield & (255 << self::BITFIELD_DISABLED)) >> self::BITFIELD_DISABLED);
}
/**
* @deprecated Use public literals member
*/
public function getLiterals()
{
return $this->literals;
}
public function isAssertion()
{
return 1 === count($this->literals);

@ -154,17 +154,4 @@ class RepositoryManager
{
return $this->localRepository;
}
/**
* Returns all local repositories for the project.
*
* @deprecated getLocalDevRepository is gone, so this is useless now, just use getLocalRepository instead
* @return array[WritableRepositoryInterface]
*/
public function getLocalRepositories()
{
trigger_error('This method is deprecated, use getLocalRepository instead since the getLocalDevRepository is now gone', E_USER_DEPRECATED);
return array($this->localRepository);
}
}

Loading…
Cancel
Save