diff options
author | Daniel Hansson <mailto@danielhansson.nu> | 2023-10-02 10:54:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-02 10:54:36 +0200 |
commit | da2aad598eaf09b520ff711a3ce42a86e9499dec (patch) | |
tree | 60b5529f203a35f1c73b7210b9a74d55cc6fe5ae /lib/private/Preview/Generator.php | |
parent | b2d105e7ec44ec5a1a53a7a6140f1dfc0a9b2559 (diff) | |
download | nextcloud-server-da2aad598eaf09b520ff711a3ce42a86e9499dec.tar.gz nextcloud-server-da2aad598eaf09b520ff711a3ce42a86e9499dec.zip |
also remove function
Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
Diffstat (limited to 'lib/private/Preview/Generator.php')
-rw-r--r-- | lib/private/Preview/Generator.php | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/private/Preview/Generator.php b/lib/private/Preview/Generator.php index 9d93a6b3af7..4a1270fa4a6 100644 --- a/lib/private/Preview/Generator.php +++ b/lib/private/Preview/Generator.php @@ -215,25 +215,6 @@ class Generator { } /** - * Generate a small image straight away without generating a max preview first - * Preview generated is 256x256 - * - * @param ISimpleFile[] $previewFiles - * - * @throws NotFoundException - */ - private function getSmallImagePreview(ISimpleFolder $previewFolder, array $previewFiles, File $file, string $mimeType, string $prefix, bool $crop): ISimpleFile { - $width = 256; - $height = 256; - - try { - return $this->getCachedPreview($previewFiles, $width, $height, $crop, $mimeType, $prefix); - } catch (NotFoundException $e) { - return $this->generateProviderPreview($previewFolder, $file, $width, $height, $crop, false, $mimeType, $prefix); - } - } - - /** * Acquire a semaphore of the specified id and concurrency, blocking if necessary. * Return an identifier of the semaphore on success, which can be used to release it via * {@see Generator::unguardWithSemaphore()}. |