1
0
Fork 0

Remove unused methods from downloaders

pull/19/head
everzet 2011-09-25 21:00:59 +03:00
parent 05ddfde868
commit c9ecb0d1ad
3 changed files with 0 additions and 21 deletions

View File

@ -34,11 +34,4 @@ class GitDownloader implements DownloaderInterface
system('git archive --format=tar --prefix='.escapeshellarg($package->getName()).' --remote='.escapeshellarg($url).' master | tar -xf -'); 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);
}
} }

View File

@ -66,11 +66,4 @@ class PearDownloader implements DownloaderInterface
} }
chdir($cwd); chdir($cwd);
} }
public function isDownloaded(PackageInterface $package, $path)
{
$targetPath = $path . '/' . $package->getName();
return is_dir($targetPath);
}
} }

View File

@ -73,11 +73,4 @@ class ZipDownloader implements DownloaderInterface
throw new \UnexpectedValueException($zipName.' is not a valid zip archive, got error code '.$retval); 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);
}
} }