diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2018-07-02 11:36:11 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2018-07-02 12:43:43 +0200 |
commit | ce567b61216c8b41d28a484e04eba35d185fa08a (patch) | |
tree | 56d97446cb535ca8ddf205a2c2d0ea4105261eaa /apps/federatedfilesharing/lib | |
parent | 411bae51639b19d0a3ae122eda82dc872f276887 (diff) | |
download | nextcloud-server-ce567b61216c8b41d28a484e04eba35d185fa08a.tar.gz nextcloud-server-ce567b61216c8b41d28a484e04eba35d185fa08a.zip |
remove unused code
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/federatedfilesharing/lib')
-rw-r--r-- | apps/federatedfilesharing/lib/Notifications.php | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/apps/federatedfilesharing/lib/Notifications.php b/apps/federatedfilesharing/lib/Notifications.php index e15e9c2f6ab..fdba3e113d6 100644 --- a/apps/federatedfilesharing/lib/Notifications.php +++ b/apps/federatedfilesharing/lib/Notifications.php @@ -371,30 +371,6 @@ class Notifications { } /** - * check if server supports the new OCM api and ask for the correct end-point - * - * @param string $url - * @return string - */ - protected function getOCMEndPoint($url) { - $client = $this->httpClientService->newClient(); - try { - $response = $client->get($url, ['timeout' => 10, 'connect_timeout' => 10]); - } catch (\Exception $e) { - return ''; - } - - $result = $response->getBody(); - $result = json_decode($result, true); - - if (isset($result['end-point'])) { - return $result['end-point']; - } - - return ''; - } - - /** * send action regarding federated sharing to the remote server using the OCM API * * @param $remoteDomain |