diff --git a/src/Composer/Package/AliasPackage.php b/src/Composer/Package/AliasPackage.php index 09ed4fb9b..63b75cdfd 100644 --- a/src/Composer/Package/AliasPackage.php +++ b/src/Composer/Package/AliasPackage.php @@ -307,11 +307,6 @@ class AliasPackage extends BasePackage implements CompletePackageInterface return $this->aliasOf->getDistMirrors(); } - public function getScripts() - { - return $this->aliasOf->getScripts(); - } - public function getLicense() { return $this->aliasOf->getLicense(); diff --git a/src/Composer/Package/CompletePackage.php b/src/Composer/Package/CompletePackage.php index 0a926a4ce..606fa9904 100644 --- a/src/Composer/Package/CompletePackage.php +++ b/src/Composer/Package/CompletePackage.php @@ -25,26 +25,9 @@ class CompletePackage extends Package implements CompletePackageInterface protected $authors; protected $description; protected $homepage; - protected $scripts = array(); protected $support = array(); protected $abandoned = false; - /** - * @param array $scripts - */ - public function setScripts(array $scripts) - { - $this->scripts = $scripts; - } - - /** - * {@inheritDoc} - */ - public function getScripts() - { - return $this->scripts; - } - /** * Set the repositories * diff --git a/src/Composer/Package/CompletePackageInterface.php b/src/Composer/Package/CompletePackageInterface.php index 4036b3cec..04670c4b9 100644 --- a/src/Composer/Package/CompletePackageInterface.php +++ b/src/Composer/Package/CompletePackageInterface.php @@ -19,13 +19,6 @@ namespace Composer\Package; */ interface CompletePackageInterface extends PackageInterface { - /** - * Returns the scripts of this package - * - * @return array array('script name' => array('listeners')) - */ - public function getScripts(); - /** * Returns an array of repositories * diff --git a/src/Composer/Package/RootPackageInterface.php b/src/Composer/Package/RootPackageInterface.php index 7cf846955..258d00b2e 100644 --- a/src/Composer/Package/RootPackageInterface.php +++ b/src/Composer/Package/RootPackageInterface.php @@ -66,9 +66,9 @@ interface RootPackageInterface extends CompletePackageInterface public function getConfig(); /** - * Returns the root package's scripts + * Returns the scripts of this package * - * @return array + * @return array array('script name' => array('listeners')) */ public function getScripts();