1
0
Fork 0

Removed long deprecated functions that were no longer referenced anywhere.

pull/4921/head
Niels Keurentjes 2016-02-15 22:00:54 +01:00
parent aa6b2e5b63
commit ebfceefca6
3 changed files with 0 additions and 31 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);
}
}