Skip to content

Commit 3bbd052

Browse files
Removed unused release channel code
1 parent ee30dca commit 3bbd052

File tree

3 files changed

+1
-29
lines changed

3 files changed

+1
-29
lines changed

src/Cmd.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ protected function handleSelfUpdate()
290290
{
291291
$this->printVersionString();
292292

293-
$remoteFilename = sprintf('http://phar.phpbu.de/phpbu%s.phar', Version::getReleaseChannel());
293+
$remoteFilename = 'http://phar.phpbu.de/phpbu.phar';
294294
$localFilename = realpath($_SERVER['argv'][0]);
295295
$tempFilename = basename($localFilename, '.phar') . '-temp.phar';
296296

src/Version.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,4 @@ public static function getVersionString()
6060
{
6161
return 'phpbu ' . self::id();
6262
}
63-
64-
/**
65-
* Return the current release channel ('alpha', 'beta', '')
66-
*
67-
* @return string
68-
*/
69-
public static function getReleaseChannel()
70-
{
71-
if (strpos(self::$pharVersion, 'alpha') !== false) {
72-
return '-alpha';
73-
}
74-
75-
if (strpos(self::$pharVersion, 'beta') !== false) {
76-
return '-beta';
77-
}
78-
79-
return '';
80-
}
8163
}

tests/phpbu/VersionTest.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,4 @@ public function testGetVersion()
3535

3636
$this->assertEquals('phpbu 2.1', substr($version, 0, 9), 'version should match');
3737
}
38-
39-
/**
40-
* Tests Version::createSource
41-
*/
42-
public function testGetReleaseChannel()
43-
{
44-
$channel = Version::getReleaseChannel();
45-
46-
$this->assertEquals('', $channel, 'default channel should not be alpha or beta');
47-
}
4838
}

0 commit comments

Comments
 (0)