getService() is not needed -> remove
This commit is contained in:
parent
bf1cb20e90
commit
af39e59e88
1 changed files with 0 additions and 20 deletions
|
@ -76,9 +76,6 @@ class Server extends SimpleContainer implements IServerContainer {
|
|||
/** @var string */
|
||||
private $webRoot;
|
||||
|
||||
/** @var string */
|
||||
protected $service = null;
|
||||
|
||||
/**
|
||||
* @param string $webRoot
|
||||
*/
|
||||
|
@ -1070,23 +1067,6 @@ class Server extends SimpleContainer implements IServerContainer {
|
|||
return $this->query('CryptoWrapper');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return requested service
|
||||
*/
|
||||
public function getService() {
|
||||
if (! isset ($this->service )) {
|
||||
$pathInfo = self::getRequest ()->getPathInfo ();
|
||||
if ($pathInfo === false || $pathInfo === '') {
|
||||
return;
|
||||
}
|
||||
if (! $pos = strpos ( $pathInfo, '/', 1 )) {
|
||||
$pos = strlen ( $pathInfo );
|
||||
}
|
||||
$this->service=substr ( $pathInfo, 1, $pos - 1 );
|
||||
}
|
||||
return $this->service;
|
||||
}
|
||||
|
||||
/**
|
||||
* Not a public API as of 8.2, wait for 9.0
|
||||
* @return \OCA\Files_External\Service\BackendService
|
||||
|
|
Loading…
Reference in a new issue