From: Thomas Müller Date: Thu, 3 Apr 2014 15:17:44 +0000 (+0200) Subject: remove duplicate method checkDependencies() X-Git-Tag: v7.0.0alpha2~476^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e3b9a861841f53dea810c1246ffa3cf809d0bfab;p=nextcloud-server.git remove duplicate method checkDependencies() --- diff --git a/apps/files_external/lib/amazons3.php b/apps/files_external/lib/amazons3.php index 352885121f9..2093fb7e58c 100644 --- a/apps/files_external/lib/amazons3.php +++ b/apps/files_external/lib/amazons3.php @@ -73,18 +73,6 @@ class AmazonS3 extends \OC\Files\Storage\Common { } } - /** - * check if curl is installed - */ - public static function checkDependencies() { - if (function_exists('curl_init')) { - return true; - } else { - $l = new \OC_L10N('files_external'); - return $l->t('Note: The cURL support in PHP is not enabled or installed. Mounting of Amazon S3 is not possible. Please ask your system administrator to install it.'); - } - } - public function __construct($params) { if (!isset($params['key']) || !isset($params['secret']) || !isset($params['bucket'])) { throw new \Exception("Access Key, Secret and Bucket have to be configured.");