[TASK] Only show active packages in PackageStates.php
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Package / FailsafePackageManager.php
index 1c06feb..91dc777 100644 (file)
@@ -21,25 +21,11 @@ namespace TYPO3\CMS\Core\Package;
  */
 class FailsafePackageManager extends PackageManager
 {
-    /**
-     * @var \TYPO3\CMS\Core\Configuration\ConfigurationManager
-     */
-    protected $configurationManager;
-
     /**
      * @var bool TRUE if package manager is in failsafe mode
      */
     protected $inFailsafeMode = false;
 
-    /**
-     * Constructor
-     */
-    public function __construct()
-    {
-        $this->configurationManager = new \TYPO3\CMS\Core\Configuration\ConfigurationManager;
-        parent::__construct();
-    }
-
     /**
      * Loads the states of available packages from the PackageStates.php file.
      * The result is stored in $this->packageStatesConfiguration.
@@ -57,17 +43,6 @@ class FailsafePackageManager extends PackageManager
         }
     }
 
-    /**
-     * Requires and registers all packages which were defined in packageStatesConfiguration
-     *
-     * @return void
-     */
-    protected function registerPackagesFromConfiguration($registerOnlyNewPackages = false)
-    {
-        $this->packageStatesConfiguration['packages']['install']['state'] = 'active';
-        parent::registerPackagesFromConfiguration($registerOnlyNewPackages);
-    }
-
     /**
      * Sort and save states
      *