mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
Remove unused shouldUse* functions from PhabricatorRepository
Summary: Calls to private functions `PhabricatorRepository::shouldUseSSH()` and `PhabricatorRepository::shouldUseHTTP()` were removed in https://we.phorge.it/rP29d1115037b84454c4fd186c47f33f162cc337b9. Call to private function `PhabricatorRepository::shouldUseSVNProtocol()` was removed in https://we.phorge.it/rP575c01373ee77c12b06696b34cfdf43a2eb26c42. Test Plan: Grep the code; run static code analysis. Reviewers: O1 Blessed Committers, valerio.bozzolan Reviewed By: O1 Blessed Committers, valerio.bozzolan Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Differential Revision: https://we.phorge.it/D25786
This commit is contained in:
parent
3e53151815
commit
24ebac8ad7
1 changed files with 0 additions and 56 deletions
|
@ -1229,62 +1229,6 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
|
||||||
return $uri;
|
return $uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Determine if we should connect to the remote using SSH flags and
|
|
||||||
* credentials.
|
|
||||||
*
|
|
||||||
* @return bool True to use the SSH protocol.
|
|
||||||
* @task uri
|
|
||||||
*/
|
|
||||||
private function shouldUseSSH() {
|
|
||||||
if ($this->isHosted()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$protocol = $this->getRemoteProtocol();
|
|
||||||
if ($this->isSSHProtocol($protocol)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Determine if we should connect to the remote using HTTP flags and
|
|
||||||
* credentials.
|
|
||||||
*
|
|
||||||
* @return bool True to use the HTTP protocol.
|
|
||||||
* @task uri
|
|
||||||
*/
|
|
||||||
private function shouldUseHTTP() {
|
|
||||||
if ($this->isHosted()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$protocol = $this->getRemoteProtocol();
|
|
||||||
return ($protocol == 'http' || $protocol == 'https');
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Determine if we should connect to the remote using SVN flags and
|
|
||||||
* credentials.
|
|
||||||
*
|
|
||||||
* @return bool True to use the SVN protocol.
|
|
||||||
* @task uri
|
|
||||||
*/
|
|
||||||
private function shouldUseSVNProtocol() {
|
|
||||||
if ($this->isHosted()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$protocol = $this->getRemoteProtocol();
|
|
||||||
return ($protocol == 'svn');
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine if a protocol is SSH or SSH-like.
|
* Determine if a protocol is SSH or SSH-like.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue