Skip to content

Commit

Permalink
removed dead code (getVersion() is called before download() and resol…
Browse files Browse the repository at this point in the history
…ved dev-master to the latest hardcoded version),

close #25
  • Loading branch information
jakoch committed Jan 25, 2016
1 parent 04cf8dd commit 8e5cb1b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/PhantomInstaller/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ public static function getPhantomJsVersions()

public static function getLowerVersion($old_version)
{
if($old_version === 'dev-master') {
$old_version = '2.0.0';
}

foreach(self::getPhantomJsVersions() as $idx => $version)
{
// if $old_version is bigger than $version from versions array, return $version
Expand Down

0 comments on commit 8e5cb1b

Please sign in to comment.