diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-11-27 07:46:32 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-11-27 07:46:32 +0100 |
commit | dbb034f903fa59c4cd0f291ac5fc27bbed383e5e (patch) | |
tree | 52469e78ced1ffab55c337b74eb11edf551e5b24 /lib/private/legacy/image.php | |
parent | 645fc993c245f198a2da26aea0619e840eef3f3e (diff) | |
download | nextcloud-server-dbb034f903fa59c4cd0f291ac5fc27bbed383e5e.tar.gz nextcloud-server-dbb034f903fa59c4cd0f291ac5fc27bbed383e5e.zip |
Remove unused mimetype detection method in OC_Image
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/legacy/image.php')
-rw-r--r-- | lib/private/legacy/image.php | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/private/legacy/image.php b/lib/private/legacy/image.php index fe9f054f5d4..a7d702ac032 100644 --- a/lib/private/legacy/image.php +++ b/lib/private/legacy/image.php @@ -63,22 +63,6 @@ class OC_Image implements \OCP\IImage { private $exif; /** - * Get mime type for an image file. - * - * @param string|null $filePath The path to a local image file. - * @return string The mime type if the it could be determined, otherwise an empty string. - */ - static public function getMimeTypeForFile($filePath) { - // exif_imagetype throws "read error!" if file is less than 12 byte - if ($filePath !== null && filesize($filePath) > 11) { - $imageType = exif_imagetype($filePath); - } else { - $imageType = false; - } - return $imageType ? image_type_to_mime_type($imageType) : ''; - } - - /** * Constructor. * * @param resource|string $imageRef The path to a local file, a base64 encoded string or a resource created by |