浏览代码

Remove "remove" from request

Jordi Boggiano 5 年之前
父节点
当前提交
e162cc6f0a
共有 2 个文件被更改,包括 0 次插入9 次删除
  1. 0 4
      src/Composer/DependencyResolver/Problem.php
  2. 0 5
      src/Composer/DependencyResolver/Request.php

+ 0 - 4
src/Composer/DependencyResolver/Problem.php

@@ -224,10 +224,6 @@ class Problem
                 }
 
                 return 'Installation request for '.$packageName.$this->constraintToText($constraint).' -> satisfiable by '.$this->getPackageList($packages).'.';
-            case 'update':
-                return 'Update request for '.$packageName.$this->constraintToText($constraint).'.';
-            case 'remove':
-                return 'Removal request for '.$packageName.$this->constraintToText($constraint).'';
         }
 
         if (isset($constraint)) {

+ 0 - 5
src/Composer/DependencyResolver/Request.php

@@ -38,11 +38,6 @@ class Request
         $this->addJob($packageName, 'install', $constraint);
     }
 
-    public function remove($packageName, ConstraintInterface $constraint = null)
-    {
-        $this->addJob($packageName, 'remove', $constraint);
-    }
-
     /**
      * Mark an existing package as being installed and having to remain installed
      *