From aacdcb1570a0a3796fe68fb3339e34df112a67e0 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 3 Dec 2011 11:57:59 +0100 Subject: [PATCH] Allow self-update to be called outside of a project context --- src/Composer/Command/SelfUpdateCommand.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Composer/Command/SelfUpdateCommand.php b/src/Composer/Command/SelfUpdateCommand.php index 1ce1d3f3e..e3101b8c5 100644 --- a/src/Composer/Command/SelfUpdateCommand.php +++ b/src/Composer/Command/SelfUpdateCommand.php @@ -39,8 +39,6 @@ EOT protected function execute(InputInterface $input, OutputInterface $output) { - $composer = $this->getComposer(); - $latest = trim(file_get_contents('http://getcomposer.org/version')); if (Composer::VERSION !== $latest) {