From c9ecb0d1ad8cf400be7129f82ff05539ea215590 Mon Sep 17 00:00:00 2001 From: everzet Date: Sun, 25 Sep 2011 21:00:59 +0300 Subject: [PATCH] Remove unused methods from downloaders --- src/Composer/Downloader/GitDownloader.php | 7 ------- src/Composer/Downloader/PearDownloader.php | 7 ------- src/Composer/Downloader/ZipDownloader.php | 7 ------- 3 files changed, 21 deletions(-) diff --git a/src/Composer/Downloader/GitDownloader.php b/src/Composer/Downloader/GitDownloader.php index bb22bc0be..9b5b036df 100644 --- a/src/Composer/Downloader/GitDownloader.php +++ b/src/Composer/Downloader/GitDownloader.php @@ -34,11 +34,4 @@ class GitDownloader implements DownloaderInterface system('git archive --format=tar --prefix='.escapeshellarg($package->getName()).' --remote='.escapeshellarg($url).' master | tar -xf -'); } } - - public function isDownloaded(PackageInterface $package, $path) - { - $targetPath = $path . '/' . $package->getName(); - - return is_dir($targetPath); - } } diff --git a/src/Composer/Downloader/PearDownloader.php b/src/Composer/Downloader/PearDownloader.php index c93519b1c..0f4c86289 100644 --- a/src/Composer/Downloader/PearDownloader.php +++ b/src/Composer/Downloader/PearDownloader.php @@ -66,11 +66,4 @@ class PearDownloader implements DownloaderInterface } chdir($cwd); } - - public function isDownloaded(PackageInterface $package, $path) - { - $targetPath = $path . '/' . $package->getName(); - - return is_dir($targetPath); - } } diff --git a/src/Composer/Downloader/ZipDownloader.php b/src/Composer/Downloader/ZipDownloader.php index 098ba151a..94a7eac0e 100644 --- a/src/Composer/Downloader/ZipDownloader.php +++ b/src/Composer/Downloader/ZipDownloader.php @@ -73,11 +73,4 @@ class ZipDownloader implements DownloaderInterface throw new \UnexpectedValueException($zipName.' is not a valid zip archive, got error code '.$retval); } } - - public function isDownloaded(PackageInterface $package, $path) - { - $targetPath = $path . '/' . $package->getName(); - - return is_dir($targetPath); - } }