diff --git a/src/Composer/Factory.php b/src/Composer/Factory.php index 7e1dd83eb..62869c7a2 100644 --- a/src/Composer/Factory.php +++ b/src/Composer/Factory.php @@ -263,14 +263,6 @@ class Factory return new ConsoleOutput(ConsoleOutput::VERBOSITY_NORMAL, null, $formatter); } - /** - * @deprecated Use Composer\Repository\RepositoryFactory::defaultRepos instead - */ - public static function createDefaultRepositories(IOInterface $io = null, Config $config = null, RepositoryManager $rm = null) - { - return RepositoryFactory::defaultRepos($io, $config, $rm); - } - /** * Creates a Composer instance * diff --git a/src/Composer/Script/ScriptEvents.php b/src/Composer/Script/ScriptEvents.php index 491c6bc65..d2dc66625 100644 --- a/src/Composer/Script/ScriptEvents.php +++ b/src/Composer/Script/ScriptEvents.php @@ -128,66 +128,4 @@ class ScriptEvents * @var string */ const POST_ARCHIVE_CMD = 'post-archive-cmd'; - - /** Deprecated constants below */ - - /** - * The PRE_PACKAGE_INSTALL event occurs before a package is installed. - * - * The event listener method receives a Composer\Installer\PackageEvent instance. - * - * @deprecated Use Composer\Installer\PackageEvents::PRE_PACKAGE_INSTALL instead. - * @var string - */ - const PRE_PACKAGE_INSTALL = 'pre-package-install'; - - /** - * The POST_PACKAGE_INSTALL event occurs after a package is installed. - * - * The event listener method receives a Composer\Installer\PackageEvent instance. - * - * @deprecated Use Composer\Installer\PackageEvents::POST_PACKAGE_INSTALL instead. - * @var string - */ - const POST_PACKAGE_INSTALL = 'post-package-install'; - - /** - * The PRE_PACKAGE_UPDATE event occurs before a package is updated. - * - * The event listener method receives a Composer\Installer\PackageEvent instance. - * - * @deprecated Use Composer\Installer\PackageEvents::PRE_PACKAGE_UPDATE instead. - * @var string - */ - const PRE_PACKAGE_UPDATE = 'pre-package-update'; - - /** - * The POST_PACKAGE_UPDATE event occurs after a package is updated. - * - * The event listener method receives a Composer\Installer\PackageEvent instance. - * - * @deprecated Use Composer\Installer\PackageEvents::POST_PACKAGE_UPDATE instead. - * @var string - */ - const POST_PACKAGE_UPDATE = 'post-package-update'; - - /** - * The PRE_PACKAGE_UNINSTALL event occurs before a package has been uninstalled. - * - * The event listener method receives a Composer\Installer\PackageEvent instance. - * - * @deprecated Use Composer\Installer\PackageEvents::PRE_PACKAGE_UNINSTALL instead. - * @var string - */ - const PRE_PACKAGE_UNINSTALL = 'pre-package-uninstall'; - - /** - * The POST_PACKAGE_UNINSTALL event occurs after a package has been uninstalled. - * - * The event listener method receives a Composer\Installer\PackageEvent instance. - * - * @deprecated Use Composer\Installer\PackageEvents::POST_PACKAGE_UNINSTALL instead. - * @var string - */ - const POST_PACKAGE_UNINSTALL = 'post-package-uninstall'; }