Browse Source

Undo addition of a bunch of Script methods to RootPackage[Interface], refs #5401

Jordi Boggiano 8 years ago
parent
commit
98bf6d704e

+ 0 - 8
src/Composer/Package/RootAliasPackage.php

@@ -70,14 +70,6 @@ class RootAliasPackage extends AliasPackage implements RootPackageInterface
         return $this->aliasOf->getConfig();
     }
 
-    /**
-     * {@inheritDoc}
-     */
-    public function getScripts()
-    {
-        return $this->aliasOf->getScripts();
-    }
-
     /**
      * {@inheritDoc}
      */

+ 0 - 19
src/Composer/Package/RootPackage.php

@@ -23,7 +23,6 @@ class RootPackage extends CompletePackage implements RootPackageInterface
     protected $preferStable = false;
     protected $stabilityFlags = array();
     protected $config = array();
-    protected $scripts = array();
     protected $references = array();
     protected $aliases = array();
 
@@ -99,24 +98,6 @@ class RootPackage extends CompletePackage implements RootPackageInterface
         return $this->config;
     }
 
-    /**
-     * Set the scripts
-     *
-     * @param array $scripts
-     */
-    public function setScripts(array $scripts)
-    {
-        $this->scripts = $scripts;
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function getScripts()
-    {
-        return $this->scripts;
-    }
-
     /**
      * Set the references
      *

+ 0 - 7
src/Composer/Package/RootPackageInterface.php

@@ -65,13 +65,6 @@ interface RootPackageInterface extends CompletePackageInterface
      */
     public function getConfig();
 
-    /**
-     * Returns the root package's scripts
-     *
-     * @return array
-     */
-    public function getScripts();
-
     /**
      * Set the required packages
      *