Removed unused private functions
parent
a6475a7118
commit
33d7a64df9
|
@ -331,16 +331,6 @@ abstract class Rule
|
||||||
return Problem::getPackageList($packages, $isVerbose);
|
return Problem::getPackageList($packages, $isVerbose);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getReplacedNames(PackageInterface $package)
|
|
||||||
{
|
|
||||||
$names = array();
|
|
||||||
foreach ($package->getReplaces() as $link) {
|
|
||||||
$names[] = $link->getTarget();
|
|
||||||
}
|
|
||||||
|
|
||||||
return $names;
|
|
||||||
}
|
|
||||||
|
|
||||||
private function deduplicateDefaultBranchAlias(PackageInterface $package)
|
private function deduplicateDefaultBranchAlias(PackageInterface $package)
|
||||||
{
|
{
|
||||||
if ($package instanceof AliasPackage && $package->getPrettyVersion() === VersionParser::DEFAULT_BRANCH_ALIAS) {
|
if ($package instanceof AliasPackage && $package->getPrettyVersion() === VersionParser::DEFAULT_BRANCH_ALIAS) {
|
||||||
|
|
|
@ -591,17 +591,6 @@ class Solver
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function resetSolver()
|
|
||||||
{
|
|
||||||
$this->decisions->reset();
|
|
||||||
|
|
||||||
$this->propagateIndex = 0;
|
|
||||||
$this->branches = array();
|
|
||||||
|
|
||||||
$this->enableDisableLearnedRules();
|
|
||||||
$this->makeAssertionRuleDecisions();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* enable/disable learnt rules
|
* enable/disable learnt rules
|
||||||
*
|
*
|
||||||
|
|
|
@ -315,23 +315,6 @@ class EventDispatcher
|
||||||
return $className::$methodName($event);
|
return $className::$methodName($event);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function serializeCallback($cb)
|
|
||||||
{
|
|
||||||
if (is_array($cb) && count($cb) === 2) {
|
|
||||||
if (is_object($cb[0])) {
|
|
||||||
$cb[0] = get_class($cb[0]);
|
|
||||||
}
|
|
||||||
if (is_string($cb[0]) && is_string($cb[1])) {
|
|
||||||
$cb = implode('::', $cb);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (is_string($cb)) {
|
|
||||||
return $cb;
|
|
||||||
}
|
|
||||||
|
|
||||||
return var_export($cb, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a listener for a particular event
|
* Add a listener for a particular event
|
||||||
*
|
*
|
||||||
|
|
|
@ -479,20 +479,6 @@ class CurlDownloader
|
||||||
return new TransportException('The "'.$job['url'].'" file could not be downloaded ('.$errorMessage.')', $response->getStatusCode());
|
return new TransportException('The "'.$job['url'].'" file could not be downloaded ('.$errorMessage.')', $response->getStatusCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
private function onProgress($curlHandle, callable $notify, array $progress, array $previousProgress)
|
|
||||||
{
|
|
||||||
// TODO add support for progress
|
|
||||||
if (300 <= $progress['http_code'] && $progress['http_code'] < 400) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if ($previousProgress['download_content_length'] < $progress['download_content_length']) {
|
|
||||||
$notify(STREAM_NOTIFY_FILE_SIZE_IS, STREAM_NOTIFY_SEVERITY_INFO, '', 0, 0, (int) $progress['download_content_length'], false);
|
|
||||||
}
|
|
||||||
if ($previousProgress['size_download'] < $progress['size_download']) {
|
|
||||||
$notify(STREAM_NOTIFY_PROGRESS, STREAM_NOTIFY_SEVERITY_INFO, '', 0, (int) $progress['size_download'], (int) $progress['download_content_length'], false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private function checkCurlResult($code)
|
private function checkCurlResult($code)
|
||||||
{
|
{
|
||||||
if ($code != CURLM_OK && $code != CURLM_CALL_MULTI_PERFORM) {
|
if ($code != CURLM_OK && $code != CURLM_CALL_MULTI_PERFORM) {
|
||||||
|
|
Loading…
Reference in New Issue