summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-09-02 16:36:54 +0200
committerGitHub <noreply@github.com>2016-09-02 16:36:54 +0200
commit3209a81e63156b68caa34356630323da4daa4a2f (patch)
tree19ed27135b3531c1eeb6c9c923d2acc77f557b0c
parent93624c30286fa34279678efe053da77505b587cd (diff)
parent3a45475592cfe6675fc3ef6f4477909e6f41a11f (diff)
downloadnextcloud-server-3209a81e63156b68caa34356630323da4daa4a2f.tar.gz
nextcloud-server-3209a81e63156b68caa34356630323da4daa4a2f.zip
Merge pull request #1246 from nextcloud/federation_dead_code
Remove dead OCS register code
-rw-r--r--apps/federation/lib/AppInfo/Application.php34
1 files changed, 0 insertions, 34 deletions
diff --git a/apps/federation/lib/AppInfo/Application.php b/apps/federation/lib/AppInfo/Application.php
index cdc6145dfb4..e5acab52857 100644
--- a/apps/federation/lib/AppInfo/Application.php
+++ b/apps/federation/lib/AppInfo/Application.php
@@ -100,40 +100,6 @@ class Application extends \OCP\AppFramework\App {
}
/**
- * register OCS API Calls
- */
- public function registerOCSApi() {
-
- $container = $this->getContainer();
- $server = $container->getServer();
-
- $auth = new OCSAuthAPI(
- $server->getRequest(),
- $server->getSecureRandom(),
- $server->getJobList(),
- $container->query('TrustedServers'),
- $container->query('DbHandler'),
- $server->getLogger()
-
- );
-
- API::register('get',
- '/apps/federation/api/v1/shared-secret',
- array($auth, 'getSharedSecret'),
- 'federation',
- API::GUEST_AUTH
- );
-
- API::register('post',
- '/apps/federation/api/v1/request-shared-secret',
- array($auth, 'requestSharedSecret'),
- 'federation',
- API::GUEST_AUTH
- );
-
- }
-
- /**
* listen to federated_share_added hooks to auto-add new servers to the
* list of trusted servers.
*/