getService() is not needed -> remove

This commit is contained in:
Thomas Müller 2015-09-23 12:00:07 +02:00
parent bf1cb20e90
commit af39e59e88

View file

@ -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