remove unused code

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
pull/9345/head
Bjoern Schiessle 7 years ago
parent 411bae5163
commit ce567b6121
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
  1. 24
      apps/federatedfilesharing/lib/Notifications.php

@ -370,30 +370,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
*

Loading…
Cancel
Save